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-clientNAMEREADYSTATUSRESTARTSAGEnfs-client-provisioner-6956c9b6f8-cwl8j0/1Pending033mroot@ubuntu:/opt/m
·
### 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
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)
重启NFS 服务,pod镜像拉取
参考:https://blog.csdn.net/Xiongzhizhu/article/details/51595806
更多推荐
已为社区贡献65条内容
所有评论(0)