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.
More on Containers, Kubernetes, IPv6 and packet captures
After someone ran `iptables -F` (or restarted firewalld), all Docker containers lost outbound connectivity.Intermediate`docker run -p 8080:80 myapp` starts fine, but `curl localhost:8080` returns `Connection reset by peer`.BeginnerTwo containers on the default bridge network can't reach each other by container name.Beginner`docker run -p 80:80 nginx` fails with `Bind for 0.0.0.0:80 failed: port is already allocated`.BeginnerA Service returns `Connection refused` / nothing, and `kubectl get endpoints myapp` shows `<none>`.Beginner`curl` to a pod IP works, but `curl` to the Service's ClusterIP times out.Intermediate