Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

A new Kubernetes node stays `NotReady` with `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.

IntermediateTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer

Likely causes → The CNI plugin isn't installed or running on that node: the CNI DaemonSet pod (Calico, Cilium, aws-node) is failing, can't be scheduled due to taints, or /etc/cni/net.d/ has no config. On a fresh cluster, the CNI was never applied.

Diagnose →

kubectl describe node <node> | grep -A5 Conditions
kubectl -n kube-system get pods -o wide --field-selector spec.nodeName=<node>
kubectl -n kube-system logs <cni-pod> --all-containers --tail=50
ls /etc/cni/net.d/ /opt/cni/bin/        # on the node

Fix → Install/repair the CNI, fix the failing CNI pod (image pull, IAM permissions for aws-node, wrong pod CIDR), and make sure its DaemonSet tolerates the node's taints.

Prevent → Treat the CNI as part of cluster bootstrap and alert on DaemonSet numberUnavailable > 0.

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures