Documentation Center

Installing NFS Provisioner for ReadWriteMany volumes (Optional)

About this task

You can skip this step if you already have the ability to create ReadWriteVolumes with performance compatible with NFS.

Procedure

  • Run the following command to install the NFS Provisioner.
    helm install -f google.yaml nfs-server-provisioner stable/nfs-server-provisioner
  • Sample parameters from the google.yaml file:
    • persistence.enabled: Always set to true.
    • persistence.storageClass: This is platform dependent (e.g., "managed-premium" for Azure). Please see the sample files provided for each platform.
    • persistence.size: Maximum size to allocate (e.g., 100GB). We recommend at least 20GB + 3GB per language pair you intend to use in the future.

    The values used from the configuration file are shown below.

    persistence:
      enabled: true
      storageClass: "standard"
      size: 100Gi # Minimum 20 GB + 3GB per Language Pair
    extraArgs:
      device-based-fsids: "0"

Results

The new volume should now appear in the cluster.

kubectl get pvc

NAME                            STATUS   VOLUME       CAPACITY   ACCESS MODES  STORAGECLASS  AGE
data-nfs-server-provisioner-0   Bound    pvc-47fbf83b 120Gi      RWO           standard      2m