如何在kubernetes上设置hostPath卷权限?
默认情况下,Kubernetes似乎在目录上创建了一个具有如何在kubernetes上设置hostPath卷权限?,kubernetes,Kubernetes,默认情况下,Kubernetes似乎在目录上创建了一个具有755权限的hostPath卷 initContainers: - name: volume-mount-hack image: busybox command: ["sh", "-c", "chmod -R 777 /tmp/docker"] volumeMounts: - name: redis-socket mountPath: /tmp/docker 是
755
权限的hostPath卷
initContainers:
- name: volume-mount-hack
image: busybox
command: ["sh", "-c", "chmod -R 777 /tmp/docker"]
volumeMounts:
- name: redis-socket
mountPath: /tmp/docker
是否可以通过卷
规范将此值设置为其他值?而不是在相关主机目录上手动执行chmod
initContainers:
- name: volume-mount-hack
image: busybox
command: ["sh", "-c", "chmod -R 777 /tmp/docker"]
volumeMounts:
- name: redis-socket
mountPath: /tmp/docker