What You Will Learn
Advanced
- What CNI plugins are
- Popular options compared
- How pod networking works
CNI (Container Network Interface) plugins provide networking for Pods. Each Pod gets its own IP. CNI handles IP allocation, routing, and network policies.
| CNI | Features | NetworkPolicy |
|---|---|---|
| Calico | BGP routing, high performance | Yes |
| Flannel | Simple, VXLAN overlay | No |
| Cilium | eBPF-based, advanced observability | Yes |
| Weave Net | Simple, encryption | Yes |
Which CNI to choose?
Learning: Flannel (simplest). Production with security: Calico (most popular). Performance + observability: Cilium (modern, eBPF). Most managed K8s (EKS/GKE/AKS) have their own CNI.Practical Exercise
Check your CNI: kubectl get pods -n kube-system
Look for: calico, flannel, cilium pods
Check Pod IPs: kubectl get pods -o wide
Note: each Pod has a unique IP (CNI provides this)
Key Takeaways
- CNI = networking layer for Pods (IP allocation, routing).
- Calico: most popular, supports NetworkPolicies.
- Flannel: simple, no NetworkPolicy support.
- Cilium: eBPF-based, advanced, modern.
- Each Pod gets its own IP (unlike Docker where ports are shared).
Comments
Comments
Post a Comment