What is a CNI plugin and how do the main ones differ?
IntermediateConceptKubernetes, Containers, MTU & Performance Basics
Answer
The Container Network Interface is the plugin API that sets up pod networking when a pod starts. Flannel: simple overlay (VXLAN). Calico: L3 routing with BGP or VXLAN plus network policy. Cilium: eBPF dataplane with policy, observability and kube-proxy replacement. AWS VPC CNI: gives pods real VPC IPs from ENIs.
Choose by need: policy and observability (Cilium, Calico), VPC-native addressing (AWS VPC CNI), simplicity (Flannel).
More on Kubernetes, Containers, MTU & Performance Basics
What are the basic Kubernetes networking rules?BeginnerWhat are the Service types in Kubernetes?BeginnerWhat is the difference between a Service and an Ingress?BeginnerHow does kube-proxy implement Services?AdvancedHow does DNS work for Services and pods in Kubernetes?IntermediateWhat are the trade-offs of AWS VPC CNI?Advanced