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 →
- Every pod gets its own IP
- Pods can reach all other pods without NAT, across nodes
- Agents on a node can reach all pods on that node
- Services give a stable virtual IP and DNS name in front of changing pods
- Check with
kubectl get pods -o wideto 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.
More on Kubernetes Networking
ClusterIP, NodePort and LoadBalancer: when do you use each?BeginnerHow does a pod find another service by name?BeginnerService versus Ingress: what is the difference?BeginnerWhat does a CNI plugin do and which ones do you know?BeginnerHow do you reach a pod from your laptop for debugging without exposing it?BeginnerBy default, can any pod talk to any other pod, and how do you change that?Beginner