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

 

相关文章:

  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-07-16
  • 2021-07-30
  • 2021-05-22
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2022-01-24
  • 2021-10-09
  • 2022-03-01
  • 2021-05-25
  • 2021-06-12
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案