赞
踩
### 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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。