- If you set `runAsUser` or `runAsGroup` in [Security Context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for your Pod or container, or if your container image uses a non-root user or group, you must set the `uid` and `gid` mount flags. You also need to use the `file-mode` and `dir-mode` mount flags to set the file system permissions. For example, set CSI inline volume `mountOptions` to `"uid=1001,gid=2002,file-mode=664,dir-mode=775"`.
0 commit comments