Skip to main content
rotimi98

1 year ago

Certified Kubernetes Course: Kubernetes NotReady Status

Followed the video installing Kubernetes onCentOS and  kubernetes is always in NotReady status. Checked the linux log files and I see the following error .... 

"kubelet: W0928 19:04:17.265592 2117 cni.go:188] Unable to update cni config: No networks found in /etc/cni/net.d

kubelet: E0928 19:04:17.265705 2117 kubelet.go:2167] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"


Any ideas? 

Image of viccab
viccab
1 year ago

Install flannel network plugin,

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml


Image of rotimi98
rotimi98
1 year ago
done that and it still not working
Image of viccab
viccab
1 year ago

Can you check if /etc/cni/net.d/10-flannel.conf is there ? { "name": "cbr0", "type": "flannel", "delegate": { "isDefaultGateway": true } }






Image of viccab
viccab
1 year ago

/etc/cni/net.d/10-flannel.con { "name": "cbr0", "type": "flannel", "delegate": { "isDefaultGateway": true } }

Image of rotimi98
rotimi98
1 year ago
Hi Victor, it wasn’t created. Will create it and try again. Thanks a lot. Much appreciated 
Image of viccab
viccab
1 year ago
If /etc/cni/net.d/10-flannel.conf does not exist, create it manually with the configuration above. 

Image of rotimi98
rotimi98
1 year ago
Thanks Victor, it worked.