sudo apt install nfs-common
Create RBAC roles to configure persistent volumes
kubectl apply -f rbac.yml
Create Deployment for NFS provisioner
Before applying this deployment, change the NFS server IP address and path.
kubectl apply -f deployment.yml
Create Storage Class
kubectl apply -f storageclass.yml
Source :