配置生效

exportfs -r

重启rpcbind、nfs服务

systemctl restart rpcbind && systemctl restart nfs

重启apiserver

systemctl restart kubelet

获取pvc信息

kubectl get pvc
kubectl describe pvc test-claim

删除pvc

kubectl delete pvc test-claim

删除StorageClass

kubectl delete storageclass managed-nfs-storage

#查看存储卷

[root@k8s-master k8s-mysql]# kubectl  get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
managed-nfs-storage qgg-nfs-storage Delete Immediate false 90m