Bootstrap

k8s NotReady cni config uninitialized

前言

k8s node 节点 join master 后,状态报错:NOT READY

查看 kubelet 日志

journalctl -xeu kubelet

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

解决

vim /var/lib/kubelet/kubeadm-flags.env

删除其中的 --network-plugin=cni

重启 kubelet

systemctl daemon-reload
systemctl restat kubelet
systemctl status kubelet
;