posts - 83,  comments - 7,  views - 27144
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

问题1

Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

原因 没有网络插件

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

 

问题2

kubectl get nodes  not Ready 

进入到 没有  Ready  的node

systemctl  status kubelet

Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"

 因为缺少网络cni所以 把master cni 拷贝过来就可以了

scp  master:/etc/cni/net.d/*  /etc/cni/net.d/

 

问题3

发现某个pod 没有起来

kubectl logs --tail=10  -n kube-flannel kube-flannel-ds-clssq 

 

问题4:

Error registering network: failed to acquire lease: node “master“ pod cidr not assigne

vim /etc/kubernetes/manifests/kube-controller-manager.yaml

加入

--allocate-node-cidrs=true

 

 

 

 

 

各模块配置路径

 

kubelet 

/etc/systemd/system/kubelet.service

 

posted on   谢Rain  阅读(1016)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示