kubernetes issue : runtime network not ready

Viewed 1450

I am beginner in kubernetes and I'm trying to set up my first cluster , my worker node has joined to my cluster successfully but when I run kubectl get nodes it is in NotReady status . and this massesge exists when I run

kubectl describe node k8s-node-1

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

I have run this command to install a a Pod network add-on:

kubectl apply -f https://docs.projectcalico.org/v3.14/manifests/calico.yaml

how can I solve this issue?

1 Answers

Adding this answer as community wiki for better visibility. OP already solved the problem with rebooting the machine.

Worth to remember that going thru all the steps with bootstrapping cluster and installing all the prerequisites will make your cluster running successfully . If you had any previous installations please remember to perform kubeadm reset and remove .kube folder from the home or root directory.

I`m also linking this github case with the same issue whereas people provide solution for this problem.

Related