Kubernetes PersistentVolume and PersistentVolumeClaim using NFS volume types

Save the definition to a file, for example nfs-pv.yaml, and create the PV:

$ kubectl create -f nfs-pv.yaml
persistentvolume “pv0001” created

$ get pv

$ kubectl create -f nfs-claim.yaml

Pods using PVC