Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Kubernetes Errors: Kubernetes nodes are in ‘”network not ready” & “No networks found”

Errors


[ec2-user@ip-172-31-16-114 ~]$ kubectl get nodes
NAME                                           STATUS     ROLES    AGE     VERSION
ip-172-31-16-114.ap-south-1.compute.internal   Ready      master   20h     v1.15.0
ip-172-31-28-73.ap-south-1.compute.internal    NotReady   <none>   5m42s   v1.15.0
[ec2-user@ip-172-31-16-114 ~]$

IN THE NODE
[root@ip-172-31-28-73 ec2-user]# journalctl -u kubelet

Jun 21 08:59:39 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: W0621 08:59:39.861692    2538 cni.go:213] Unable to update cni config: No networks found in /
Jun 21 08:59:40 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: E0621 08:59:40.179277    2538 kubelet.go:2169] Container runtime network not ready: NetworkRe
Jun 21 08:59:44 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: W0621 08:59:44.861915    2538 cni.go:213] Unable to update cni config: No networks found in /
Jun 21 08:59:45 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: E0621 08:59:45.180292    2538 kubelet.go:2169] Container runtime network not ready: NetworkRe
Jun 21 08:59:49 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: W0621 08:59:49.862101    2538 cni.go:213] Unable to update cni config: No networks found in /
Jun 21 08:59:50 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: E0621 08:59:50.181290    2538 kubelet.go:2169] Container runtime network not ready: NetworkRe
Jun 21 08:59:50 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: E0621 08:59:50.910273    2538 pod_workers.go:190] Error syncing pod 8b86e647-7177-4823-a376-7
Jun 21 08:59:54 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: W0621 08:59:54.862323    2538 cni.go:213] Unable to update cni config: No networks found in /
Jun 21 08:59:55 ip-172-31-28-73.ap-south-1.compute.internal kubelet[2538]: E0621 08:59:55.182266    2538 kubelet.go:2169] Container runtime network not ready: NetworkRe
lines 486-528/528 (END)

Solutions

  • https://stackoverflow.com/questions/47107117/how-to-debug-when-kubernetes-nodes-are-in-not-ready-state
  • https://stackoverflow.com/questions/50085323/kubernetes-worker-node-staying-in-notready-state

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.