当前位置:   article > 正文

k8s NFS挂载出现 mount.nfs: access denied by server while mounting 192.168.153.128:/nfs/data_挂载时服务器拒绝访问

挂载时服务器拒绝访问
### pod 一直处于pending状态
root@ubuntu:/opt/module/k8s# kubectl get pods -n nfs-client

NAME                                      READY     STATUS    RESTARTS   AGE
nfs-client-provisioner-6956c9b6f8-cwl8j   0/1       Pending   0          33m

root@ubuntu:/opt/module/k8s# kubectl describe pod/nfs-client-provisioner-6956c9b6f8-cwl8j -n nfs-client
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

在这里插入图片描述

root@ubuntu:/opt/module/k8s# cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
/nfs/data *(rw,no_root_squash,no_all_squash,sync)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

重启NFS 服务,pod镜像拉取

参考:https://blog.csdn.net/Xiongzhizhu/article/details/51595806

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/486581
推荐阅读
相关标签
  

闽ICP备14008679号