[root@k8s-master4 ~]# journalctl -u kubelet.service -f
[root@k8s-master1 ~]# kubectl describe node k8s-master4 -n kube-system | grep -A 20 "Conditions"
报错信息:
container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized
解决方法:
1)重启节点的containerd服务
[root@k8s-master4 ~]# systemctl restart containerd.service
2)查看集群状态
[root@k8s-master1 ~]# kubectl get nodes -o wide
至此,Node节点状态已变成Ready。
Kubernetes