解决:挂载路径映射卷就可以(容器和服务器的)
# cat demo-pod.yaml apiVersion: v1 kind: Pod metadata: name: nginx-pod namespace: default labels: app: my-pod spec: containers: - name: my-pod image: nginx:latest volumeMounts: - name: timezone mountPath: /etc/localtime volumes: - hostPath: path: /etc/localtime type: "" name: timezone