Pcornel
Containers · Container Networking

Container Network Interface (CNI)

Cheat sheet · https://pcornel.dk/topic.php?topic=6133

Back to the Topic

Answer

CNI (Container Network Interface) plugins (Calico, Cilium, Flannel, cloud CNIs) give pods their network interfaces and IPs and implement routing and often NetworkPolicy.

Remember

The CNI DaemonSet must run on every node. Pod CIDR must not overlap node or service networks. MTU must account for overlay encapsulation.

First checks

  • docker ps -a — containers and exit codes
  • docker logs <c> — container output
  • docker inspect <c> — config, mounts, network, state

Verify in this order

kubelet → CNI plugin → veth + IP + routes → cross-node via overlay/routing

Where it usually breaks

A missing CNI config leaves nodes NotReady with "network plugin not ready".

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6133

Confirmation

Confirm action

Continue?