-
Notifications
You must be signed in to change notification settings - Fork 1.6k
How To Set Mount Options For NFS-Client Provisioner #1008
Comments
mountOptions is a field on the StorageClass, if there is a way to configure it via helm that will be ideal, but I believe it can be edited after the StorageClass has been created as well |
Hmm, tried that just now and it didn't work. Looking around, it seems the StorageClass's mount options are not being propagated (#629). Transitively, I see that connected to #828 that you worked on. I helm fetch'd version: 1.1.1 of the chart with appVersion 3.1.0 (apologies if the terminology is incorrect). I put this in the StorageClass template:
After helm install'ing the local chart, I do see the storage class with the proper fields but don't see the nfs-client-provisioner using it. For sanity, I tried other mutations like "nfsvers=4.0" and wacky ones like "-o vers=4.0". |
Oh, it is the provisioner that needs mountOptions. This is more complicated. The problem is that it isn't possible to specify mountOptions for the provisioner here https://github.com/helm/charts/blob/master/stable/nfs-client-provisioner/templates/deployment.yaml#L45 without using a PV. You will need to replace the We can't just put mountOptions into the deployment template because for security reasons only StorageClasses and PersistentVolumes can dictate mount options /area nfs-client |
I am trying to use the nfs-client-provisioner inside a kubernetes cluster in AWS (EKS) and want to see if there is an example on how to enable TLS using kubectl to set the mount options for the communication between the containers and an EFS volume. |
This can be closed now. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
This just worked for me
|
Hiya,
I'm working on kubernetes clusters with RHEL as the underlying OS. RHEL has NFS version 4.1 as the default mount option. Unfortunately, my NFS server only supports version 3.x and 4.0. Because of this, using the nfs-client-provisioner fails as it doesn't override the hosts' mount options. I can edit the
/etc/nfsmount.conf
on the hosts to get this to work but this isn't a very portable solution.I can't see an option to configure nfs-client-provisioner to use custom mount options. Is there a way to set mount options, something like
helm install --name simplyguy --set nfs.server=x.y.z.w --set nfs.path=/example --set *someProperty*="vers=4.0" stable/nfs-client-provisioner
?The text was updated successfully, but these errors were encountered: