Kubernetes Pod Networking & CNI
How every Pod gets a unique routable IP via CNI plugins. Pod-to-Pod communication on the same node (via Linux bridge) and across nodes (via VXLAN/BGP). kube-proxy vs Cilium eBPF for Service IP routing.
Overview
How Pods get on the network
Every Pod in Kubernetes receives its own unique, routable IP address. This is the fundamental networking contract of the platform. Pod IPs are ephemeral, so Services provide the stable IP and DNS name that the rest of the cluster uses.
The work is split across three pieces. A CNI plugin gives each Pod an IP from the pod CIDR, the address range set aside for Pods. Pods on the same node reach each other through a Linux bridge, and Pods on different nodes reach each other through a VXLAN tunnel or over BGP routes. On top of that, a Service offers a stable ClusterIP and DNS name, and kube-proxy or Cilium's eBPF datapath translates that address to a real Pod IP with DNAT (destination NAT, rewriting the packet's destination address).
Key concepts
- CNI (Container Network Interface)
- Pod CIDR
- VXLAN encapsulation
- kube-proxy
- CoreDNS
- Pod IP is ephemeral — Service IP is stable
Interview questions
- How does a Pod get its IP address in Kubernetes?
- Compare kube-proxy iptables mode vs Cilium eBPF mode.
- What happens at the network level when Pod A on Node 1 sends a packet to Pod B on Node 2?
Sign up free to read the full topic
More DevOps topics
- Kubernetes Multi-tenancy Patterns
- Kubernetes Native Sidecar Containers
- Kubernetes Network Policies
- Kubernetes Networking Deep Dive
- Kubernetes Observability: Metrics, Logs, and Traces
- Kubernetes Operators & CRDs
- Kubernetes Pod Scheduling
- Kubernetes RBAC
- Kubernetes Runtime Classes
- Kubernetes Secrets Management
- Kubernetes Security: Pod Security and Runtime Hardening
- Kubernetes Services
Start free on Cariara · Coding problems · System design studio