k8s nfs
1 yum install -y nfs-utils-*
2 mkdir /home/data
3 vim /etc/exports
/home/data 10.0.0.0/24(rw,async,no_root_squash,no_all_squash)
2 [root@k8s-master ~]# systemctl restart rpcbind
[root@k8s-master ~]# systemctl restart nfs
[root@k8s-master ~]# systemctl enable rpcbind
[root@k8s-master ~]# systemctl enable nfs
3、报错
accessModes: [ "ReadWriteOnce" ] 写成ReadWriteMany 报错storageclass nfs not found