Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 933 Bytes

nfs-provisioner-setup.md

File metadata and controls

26 lines (17 loc) · 933 Bytes

NFS Dynamic Provisioning

Use the NFS Subdir External Provisioner to enable dynamic provisioning of Persistent Volumes using an existing NFS server.

Install NFS Subdir External Provisioner

Add the Helm repository:

helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
helm repo update

Install the provisioner:

helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \\
    --set nfs.server=<nfs_server_ip> \\
    --set nfs.path=<nfs_export_path>

Replace <nfs_server_ip> and <nfs_export_path> with your NFS server details.

Configure StorageClass (Optional)

You may need to configure the StorageClass to meet your requirements. Refer to the NFS Subdir External Provisioner Documentation for more information.