# 挂在主机时区文件模版
...
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
...