Kubernetes CNI Explained: iptables, Calico and Cilium eBPF
Kubernetes CNI explained: how IPAM and veth pairs wire Pods, how iptables, Calico BGP and Cilium eBPF move packets, and how NetworkPolicy gets enforced.
Kubernetes networking abstracts pod-to-pod communication, service discovery, and north-south ingress across dynamic node topologies. This hub groups deep-dive architecture guides and operational runbooks for CNI plugins, kube-proxy, eBPF, CoreDNS, Gateway API, and service mesh trade-offs.
Direct Answer: Kubernetes networking relies on flat pod-to-pod IP routing via CNI plugins, virtual Service IPs implemented by kube-proxy or eBPF, CoreDNS for cluster-local name resolution, and Gateway API or Ingress controllers for external HTTP/TCP traffic.
| Scenario / Layer | Primary Focus | First Action |
|---|---|---|
| Pod-to-Pod across nodes | CNI (Cilium / Calico / VPC CNI) | Verify overlay/native routing and NetworkPolicy |
| Service discovery & VIPs | ClusterIP / Headless / EndpointSlices | Verify selector labels and readinessProbes |
| External HTTP/gRPC routing | Gateway API vs Ingress | Use Gateway API for role-oriented multi-team routing |
| mTLS & L7 traffic policy | Service Mesh (Istio / Cilium) | Evaluate latency/complexity before adopting sidecars |
Kubernetes CNI explained: how IPAM and veth pairs wire Pods, how iptables, Calico BGP and Cilium eBPF move packets, and how NetworkPolicy gets enforced.
Kubernetes services explained for production: ClusterIP, NodePort, LoadBalancer and headless types, kube-proxy modes, CoreDNS names and endpoint fixes.
Kubernetes Gateway API tutorial with GatewayClass, Gateway listeners and HTTPRoute matching, TLS, ReferenceGrant, status checks and an Ingress migration path.
Ingress vs Gateway API vs Service Mesh in Kubernetes: north-south vs east-west traffic, YAML, migration, mTLS, and which layer to choose in production.
Gateway API migration from Ingress NGINX: convert Ingresses with ingress2gateway, fix annotation gaps, run in parallel, and cut over with a DNS rollback.
Istio Ambient vs Linkerd vs Cilium service mesh compared: datapath, mTLS, L7 depth, overhead evidence, licensing, and when to skip a mesh entirely.
Build Istio ingress Gateway API traffic with Kubernetes Gateway API, GatewayClass istio, HTTPRoute, HTTPS, canary weights and troubleshooting.
Choose Gateway API when you need role-based separation between cluster operators and application teams, native header/weighted traffic splitting, or standardized gRPC and TCP routing without vendor-specific Ingress annotations.
Default ndots:5 settings cause musl/glibc resolvers to search multiple cluster domains before querying external names, and conntrack table exhaustion or CoreDNS CPU throttling can trigger UDP packet drops.