默认情况下,Kubernetes 似乎会创建一个755
具有目录权限的 hostPath 卷。
是否可以通过volume
规范将此值设置为其他值?与chmod
在相关主机目录上手动执行相反。
initContainers:
- name: volume-mount-hack
image: busybox
command: ["sh", "-c", "chmod -R 777 /tmp/docker"]
volumeMounts:
- name: redis-socket
mountPath: /tmp/docker
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3844 次 |
最近记录: |