Interview Prep/Networking/Kubernetes Networking

Explain the Kubernetes networking model in one minute.

BeginnerScenarioKubernetes Networking
Answer

Situation read → The model has three rules that every CNI must satisfy.

What I'd do →

  1. Every pod gets its own IP
  2. Pods can reach all other pods without NAT, across nodes
  3. Agents on a node can reach all pods on that node
  4. Services give a stable virtual IP and DNS name in front of changing pods
  5. Check with kubectl get pods -o wide to see pod IPs and nodes

Why → A flat pod network lets applications use plain ports and IPs without per-host port mapping.

Interview tip → Say the CNI plugin implements the model; Kubernetes only defines it.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes Networking