I have a Kubernetes worker node status not ready. I am using two Ubuntn machines. One master and one worker node. I have added flannel by sudo kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
on the master node after sudo kubeadm init --pod-network-cidr=10.244.0.0/16
.
Information I got from the master node:
As it says, container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
Also, worker node says Unable to update cni config" err="no networks found in /etc/cni/net.d
Should them be the reasons?
Also this is what I got by ps -ef | grep kubelet
on the master and worker node
According to the error message the kubelet running on your worker node is not ready due to no CNI plugin being deployed on your cluster!
please refer to the official documentation here how to deploy a network plugin to your cluster.
This should enable kubelet to start properly and fixing your worker node.