[root@master ~]# ll /etc/kubernetes/manifests/ total 16 -rw------- 1 root root 2361 May 10 10:53 etcd.yaml -rw------- 1 root root 3522 May 10 10:49 kube-apiserver.yaml -rw------- 1 root root 2976 May 10 10:53 kube-controller-manager.yaml -rw------- 1 root root 1562 May 10 10:52 kube-scheduler.yaml
volumeMounts:
- mountPath: /etc/localtime
name: host-time
readOnly: true
volumes:
- hostPath:
path: /etc/localtime
name: host-time
[root@master ~]# cat /etc/kubernetes/manifests/kube-apiserver.yaml |tail -32
volumeMounts:
- mountPath: /etc/ssl/certs
name: ca-certs
readOnly: true
- mountPath: /etc/pki
name: etc-pki
readOnly: true
- mountPath: /etc/kubernetes/pki
name: k8s-certs
readOnly: true
- mountPath: /etc/localtime
name: host-time
readOnly: true
hostNetwork: true
priorityClassName: system-node-critical
volumes:
- hostPath:
path: /etc/ssl/certs
type: DirectoryOrCreate
name: ca-certs
- hostPath:
path: /etc/pki
type: DirectoryOrCreate
name: etc-pki
- hostPath:
path: /etc/kubernetes/pki
type: DirectoryOrCreate
name: k8s-certs
- hostPath:
path: /etc/localtime
name: host-time
status: {}
原文:https://www.cnblogs.com/zhangb8042/p/14750957.html