Back
Interactive Explainer

Kubernetes CNI Plugins & Pod Networking

How CNI plugins implement pod networking: IP assignment, overlay networks, BGP routing, and eBPF data planes.

🎯Key Takeaways
CNI = standard for pod IP assignment and routing
Flannel: simple, no NetworkPolicy
Cilium: eBPF-native, best performance, L7 network policies

Kubernetes CNI Plugins & Pod Networking

How CNI plugins implement pod networking: IP assignment, overlay networks, BGP routing, and eBPF data planes.

~1 min read
Be the first to complete!
What you'll learn
  • CNI = standard for pod IP assignment and routing
  • Flannel: simple, no NetworkPolicy
  • Cilium: eBPF-native, best performance, L7 network policies

CNI Plugin Landscape

CNI (Container Network Interface) is the K8s plugin standard for pod networking. When a pod starts, kubelet calls the CNI plugin to assign an IP and configure routes. Main plugins: Flannel (simple VXLAN overlay, no NetworkPolicy), Calico (BGP or overlay, full NetworkPolicy), Cilium (eBPF, L7 policies, service mesh features, replaces kube-proxy).

Key takeaways

  • CNI = standard for pod IP assignment and routing
  • Flannel: simple, no NetworkPolicy
  • Cilium: eBPF-native, best performance, L7 network policies

Suggested next

Often learned after this topic.

kube-proxy & Service Networking

Ready to see how this works in the cloud?

Switch to Career Paths for structured paths (e.g. Developer, DevOps) and provider-specific lessons.

View role-based paths

Sign in to track your progress and mark lessons complete.

Discussion

Questions? Discuss in the community or start a thread below.

Join Discord

In-app Q&A

Sign in to start or join a thread.