kubeadm : Cannot get nodes with Ready status

12/15/2019

I have a cluster with 1 master ans 1 node on raspberry

My issue is that i cannot have the ready status :

root@master:~# kubectl get nodes

NAME STATUS ROLES AGE VERSION

master NotReady master 37m v1.17.0

raspberrypi NotReady 36m v1.17.0

When i run : kubectl get nodes

i have :

Ready False Sun, 15 Dec 2019 15:48:11 +0100 Sun, 15 Dec 2019 15:07:12 +0100 KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized. WARNING: CPU hardcapping unsupported

And : journalctl -u kubelet

Dec 15 15:46:40 master kubelet[19152]: E1215 15:46:40.651863 19152 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: netw Dec 15 15:46:42 master kubelet[19152]: W1215 15:46:42.602430 19152 cni.go:237] Unable to update cni config: no networks found in /etc/cni/net.d

But the file /etc/cni/net.d

Does not exist

Struggling having my cluster working, can anyone help on whats going wrong ?

Thanks

-- user1361815
kubeadm
kubernetes

1 Answer

12/15/2019

Try installing a network plugin like Calico. See here.

Though I'd install k3s on a RaspberryPi as it's way more lightweight than Kubernetes.

EDIT:

To install weave-net use: kubectl apply -f https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d ā€˜\nā€™)

-- Cedric
Source: StackOverflow