集群环境部署突然报错
Warning FailedScheduling 4m53s default-scheduler 0/5 nodes are available: pod has unbound imm
ediate PersistentVolumeClaims. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod..
Normal Scheduled 4m52s default-scheduler Successfully assigned default/mongo-deploy-7
895996759-jbnjz to node02
Normal Pulled 3m14s (x5 over 4m49s) kubelet Container image "mongo:latest" already prese
nt on machine
Normal Created 3m14s (x5 over 4m49s) kubelet Created container mongodb
Normal Started 3m14s (x5 over 4m49s) kubelet Started container mongodb
Warning BackOff 2m43s (x10 over 4m48s) kubelet Back-off restarting failed container mongodb
in pod mongo-deploy-7895996759-jbnjz_default(12e22ad2-1408-4a8d-ae10-f932c53358a5)
解决步骤
发现所有节点挂载有问题
[root@node10 -]# showmount -e 10.200.19.14
cint create: RPC: Program not registered
登录nfs服务器,停止服务
[root@nfs -]# systemctl stop rpcbind
[root@nfs -]# systemctl stop nfs
开启服务,问题解决
[root@nfs -]# systemctl start rpcbind
[root@nfs -]# systemctl start nfs