Interview Prep/Kubernetes/Nodes, kubelet and container runtime

A node is `NotReady` and `kubectl describe node` shows `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.

BeginnerTroubleshootingNodes, kubelet and container runtime
Answer

Likely causes → No working CNI on the node: the CNI DaemonSet Pod (Calico, Cilium, aws-node) is not running there, crashed, or the CNI config in /etc/cni/net.d/ is missing. On a fresh kubeadm cluster, no CNI was installed at all.

Diagnose →

kubectl get pods -n kube-system -o wide --field-selector spec.nodeName=ip-10-0-1-5.ec2.internal
kubectl logs -n kube-system <cni-pod> --all-containers --tail=100
# On the node
ls /etc/cni/net.d/ /opt/cni/bin/

Fix → Install the CNI (fresh cluster) or fix the failing CNI Pod: missing tolerations, IAM permissions (aws-node needs AmazonEKS_CNI_Policy), wrong Pod CIDR. Once the CNI writes its config, the node turns Ready.

Prevent → CNI as a managed add-on with pinned versions; alert on CNI Pods not running on every node.

All Kubernetes questions

More on Nodes, kubelet and container runtime