k8s-组件容器时区修改
作者:互联网
# 挂在主机时区文件模版
...
volumeMounts:
- mountPath: /etc/localtime
name: host-time
readOnly: true
...
volumes:
- hostPath:
path: /etc/localtime
type: ""
name: host-time
# 修改etcd
vi /etc/kubernetes/manifests/etcd.yaml
...
- mountPath: /etc/localtime
name: host-time
readOnly: true
...
- hostPath:
path: /etc/localtime
type: ""
name: host-time
# 修改kube-controller-manager
vi /etc/kubernetes/manifests/kube-controller-manager.yaml
...
- mountPath: /etc/localtime
name: host-time
readOnly: true
...
- hostPath:
path: /etc/localtime
type: ""
name: host-time
# 修改kube-scheduler
vi /etc/kubernetes/manifests/kube-scheduler.yaml
...
- mountPath: /etc/localtime
name: host-time
readOnly: true
...
标签:容器,name,...,etc,host,time,组件,k8s,localtime 来源: https://blog.csdn.net/sunnyliuqi/article/details/122323557