我正在尝试在 kubernetes sceret 的 POD 中创建一个文件,但我面临一个问题,例如我无法更改已部署文件的权限。
我收到以下错误, chmod:更改“/root/.ssh/id_rsa”的权限:只读文件系统
我已经应用了相同的默认模式和模式,但它仍然不起作用。
volumes:
- name: gitsecret
secret:
secretName: git-keys
VolumeMounts:
- mountPath: "/root/.ssh"
name: gitsecret
readOnly: false
Run Code Online (Sandbox Code Playgroud)
谢谢
kubernetes ×1