NFS PVC中现有目录的所有者或组错误
适用场景
- NetApp Astra三端23.10.
- NFS 协议
问题描述
挂载的PVC中的目录具有 root 用户和组,而 不是预期的 所有者和组(在POD定义的SecurityContext中设置为userID 1000或groupID 3000)
/tmp/test $ ls -la
total 12
drwxrwxrwx 2 root root 4096 Apr 18 16:48 .
drwxrwxrwt 1 root root 4096 Apr 18 16:36 ..
drwxrwxrwx 2 root root 4096 Mar 21 16:46 .snapshot
-rw-r--r-- 1 1000 3000 0 Apr 18 16:47 test2.txt