一、1:服务器上安装nfs服务
yum -y install rpcbind nfs-utils
2:编写:/etc/exports
/data/nfs 192168.68.0/24(rw,sync,no_subtree_check,no_root_squash)
3:sudo exportfs -a
4:sudo systemctl restart nfs-kernel-server
二、集群部署nfs-client
./helm repo add azure Index of /kubernetes/charts/
./helm install nfs-storage azure/nfs-client-provisioner --set nfs.server=192168.68.191 --set nfs.path=/data/nfs-ksy --set storageClass.name=nfs-storage --set storageClass.defaultClass=true
三、集群添加pvc