Managing NFS Mount Options

Prev Next

NFS mount options that VAST CSI Driver uses when mounting a volume for a PVC can be set as follows:

  • Per storage class

    Supply mount options for a particular storage class using the mountOptions parameter in the VAST CSI Driver's Helm chart configuration file or the mount_options parameter in the Kubernetes YAML configuration file.

  • Per host

    Supply mount options in a host-specific NFS mount configuration file (.conf) located in the /etc/nfsmount.conf.d directory.

    Note

    Ensure that the underlying OS of the worker nodes supports use of the /etc/nfsmount.conf.d directory for setting mount options  (see man nfsmount.conf ).

If both storage class-specific and host-specific options are specified, storage class-specific options take precedence.

To make VAST CSI Driver ignore host-specific mount options, set the propagateHostMountOptions parameter to false in the driver's Helm chart configuration file:

node:
  propagateHostMountOptions: false