Kubernetes worker node status NotReady

6/30/2021

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: enter image description here

enter image description here

From the worker node, I got: enter image description here

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 enter image description here

-- yeehaw
kubeadm
kubernetes
kubernetes-networkpolicy

1 Answer

6/30/2021

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.

-- meaningqo
Source: StackOverflow