#Trident 23.04 and NFS v4

1 messages · Page 1 of 1 (latest)

long rain
#

When we swithc to NFS v4 for triden tprovisioned volumes, then we see the following ownership

drwxrwxrwx. 2 99 99 4096 Dec 7 13:51 a

Seems something is going wrong with the mapping.

The Storage class contains fsType: "nfs"

The kubernetes pod has the following on the contaner level:
securityContext:
runAsUser: 4000

And this on pod level:

    securityContext:
      fsGroup: 4000
      runAsUser: 4000
      supplementalGroups:
      - 4000

We had already a meeting with NetApp and on that side we see the permissions set to 4000, which looks fine.

But inside the pod this doesn't get reflected, we always see default 99:99.

We are running inside an OpenShift cluster version 4.13

proper portal
#

probably the containers use a UID namespace for separation. There's got to be some settings to disable that (PodSecurityPolicy maybe?)