Closed seifrajhi closed 1 month ago
archived from the discussion in slack: currently the CSI driver would only do one smb mount one PV on the node, and you could set up two PVs referencing the same file share with different mountOptions to solve the issue.
What happened:
I am not able to change the permissions of the files mounted using
azure-file-csi-persistent
in azure provider. My directory are getting mounted as root with 770 permissions, while I want my mounted files to have 750 permissions andnonroot
user.I want to avoid ownership changes of the mount volume
/app
fromazure-file-csi-persistent
storage class inside my pod?I created the following in my Dockerfile:
However, it is mounted with
50000:root
ownership when I check inside the pod, which I think is inherited from CSI. Here is the CSI configuration:What you expected to happen:
I expected the
/app
directory to retain the1000:2000
ownership set in the Dockerfile, rather than being overridden by the CSI mount options.How to reproduce it:
Anything else we need to know?:
Any guidance on using
fsGroup
and/orfsGroupChangePolicy
to maintain the desired ownership would be greatly appreciated.Environment:
v1.29.8
kubectl version
):Client Version: v1.30.3
,Server Version: v1.28.13
uname -a
):