containerd looks for the CNI configuration in /etc/cni/net.d. If it is missing, the kubelet reports the network as not ready and the node as NotReady. With Cilium, the agent writes the file 05-cilium.conflist – if it isn't running, the file stays gone.
Symptom
kubelet.go:3343] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
The node turns NotReady after a few seconds. New pods on the node stay in ContainerCreating; running pods keep their network.
Diagnosis
On the node, check the directory (readable only with sudo) and the containerd journal, then the log of the Cilium agent on this node.
sudo ls -la /etc/cni/net.d sudo journalctl -u containerd --since -1min | grep -m1 'reload cni' ... level=error msg="failed to reload cni configuration after receiving fs change event (RENAME \"/etc/cni/net.d/05-cilium.conflist\")" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized ..."
Causes
AgentNo Cilium agent on the node
The agent watches the directory and rewrites the file immediately. If no agent is running at the moment (restart, CrashLoop), it stays gone.
CP=$(k -n kube-system get pod -l k8s-app=cilium \ --field-selector spec.nodeName=worker2 -o name) k -n kube-system logs $CP -c cilium-agent --since=2m | grep -E 'Wrote CNI' ... level=info msg="Wrote CNI configuration file" module=agent.infra.cni-config destination=/host/etc/cni/net.d/05-cilium.conflist
New clusterNo CNI installed yet
Right after kubeadm init, NotReady is correct – without a CNI no pod gets an IP.
kubectl get nodes NAME STATUS ROLES AGE VERSION cp1 NotReady control-plane 64s v1.37.2
Fix
k -n kube-system get pods -l k8s-app=cilium -o wide
cilium status --wait
Cilium: OK
Operator: OK
DaemonSet cilium Desired: 3, Ready: 3/3, Available: 3/3
Don't: Copying the conflist into /etc/cni/net.d by hand. The file belongs to the agent – the cause is that it isn't running.
Cilium hands-on, day 2: how containerd finds and calls the CNI plugin, a node without CNI config, cni.exclusive and Helm rollback.
Go to day 2 →
FAQ
What happens if a foreign CNI configuration sits in /etc/cni/net.d?
With cni.exclusive=true (the default), the Cilium agent renames every foreign file to *.cilium_bak. Otherwise containerd might have wired new pods with a different plugin.
Does the kubelet itself need a CNI configuration?
No. The kubelet no longer knows about CNI since v1.24 – only the runtime (containerd) does.