如何在kubernetes上设置hostPath卷权限?

如何在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 是

默认情况下,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
是否可以通过
规范将此值设置为其他值?而不是在相关主机目录上手动执行
chmod

  initContainers:
    - name: volume-mount-hack
      image: busybox
      command: ["sh", "-c", "chmod -R 777 /tmp/docker"]
      volumeMounts:
      - name: redis-socket
        mountPath: /tmp/docker