重置后重新加入k8s集群报cni plugin not initialized解决方法

小柒助手 Kubernetes评论247字数 420阅读1分24秒阅读模式

[root@k8s-master4 ~]# journalctl -u kubelet.service -f

[root@k8s-master1 ~]# kubectl describe node k8s-master4 -n kube-system | grep -A 20 "Conditions"
文章源自小柒网-https://www.yangxingzhen.cn/9692.html

报错信息:
文章源自小柒网-https://www.yangxingzhen.cn/9692.html

container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized
文章源自小柒网-https://www.yangxingzhen.cn/9692.html

文章源自小柒网-https://www.yangxingzhen.cn/9692.html

解决方法:
文章源自小柒网-https://www.yangxingzhen.cn/9692.html

1)重启节点的containerd服务
文章源自小柒网-https://www.yangxingzhen.cn/9692.html

[root@k8s-master4 ~]# systemctl restart containerd.service
文章源自小柒网-https://www.yangxingzhen.cn/9692.html

2)查看集群状态
文章源自小柒网-https://www.yangxingzhen.cn/9692.html

[root@k8s-master1 ~]# kubectl get nodes -o wide
文章源自小柒网-https://www.yangxingzhen.cn/9692.html

文章源自小柒网-https://www.yangxingzhen.cn/9692.html

至此,Node节点状态已变成Ready。

若文章图片、下载链接等信息出错,请在评论区留言反馈,博主将第一时间更新!如本文“对您有用”,欢迎随意打赏,谢谢!

Wechat
微信扫一扫,加我!
weinxin
我的微信
微信公众号
微信扫一扫,关注我!
weinxin
我的公众号
小柒助手
  • 本文由 小柒助手 发表于 2023年11月22日 10:27:45
  • 声明:本站所有文章,如无特殊说明或标注,本站文章均为原创。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。转载请务必保留本文链接:https://www.yangxingzhen.cn/9692.html
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: