KCNA ยท Kubernetes networking
The Kubernetes network model and CNI
Every Pod gets an IP, flat Pod network, CNI plugins and what they do.
Key points
- Every Pod gets its own IP address, and Pods can reach every other Pod directly, without NAT, as if on one flat network.
- The container runtime delegates the wiring to a CNI plugin (for example Calico, Cilium or Flannel), which assigns Pod IPs and sets up interfaces and routes.
Source: https://kubernetes.io/docs/concepts/cluster-administration/networking/
Practice questions
In the Kubernetes network model, what does each Pod receive?
- Its own unique IP address within the cluster
- The IP address of the node it runs on
- One IP address per container, from the node's pool
- A shared IP address with all Pods of its namespace
Show answer
Answer: A. Its own unique IP address within the cluster
Each Pod has its own IP, shared by its containers. Containers in one Pod share it and talk over localhost; a per-node IP or a per-container IP is not the model.
Which statements are part of the Kubernetes network model?
- Every Pod has its own IP address
- Pods communicate with other Pods without NAT
- Pods must be on the same node to reach each other
- Pod traffic is isolated between namespaces by default
- Pods share the node's IP and are told apart by port
Show answer
Answer: A. Every Pod has its own IP address, B. Pods communicate with other Pods without NAT
Pods get their own IPs and reach each other without NAT. Pod IPs are not tied to the node's IP, and NAT between Pods is exactly what the model rules out. Isolation is not the default; it needs NetworkPolicies.
True or false: Kubernetes itself ships a built-in Pod network, so installing a CNI plugin is never needed.
Show answer
Answer: False
False. Kubernetes defines the network model but leaves the implementation to a CNI plugin chosen by the cluster operator (some distributions bundle one).
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
