K8s中Pod使用hostPath挂载时,写入文件为何出现权限拒绝错误?
- 内容介绍
- 文章标签
- 相关推荐
本文共计1098个文字,预计阅读时间需要5分钟。
关于hostPath权限说明:最近项目中经常遇到Pod中container挂载主机hostPath时,报错无权限问题:httpd@hostpath-volume:/test-volume$ touch 123 touch: cannot touch '123': Permission denied。这是由于又复习了一遍hostPath的使用。
本文共计1098个文字,预计阅读时间需要5分钟。
关于hostPath权限说明:最近项目中经常遇到Pod中container挂载主机hostPath时,报错无权限问题:httpd@hostpath-volume:/test-volume$ touch 123 touch: cannot touch '123': Permission denied。这是由于又复习了一遍hostPath的使用。

