Flat Pod Network Model

A Pod on one Node reaches a Pod on another with no address translation, so the receiver sees the real sender IP. What does the network model promise, what part of it is Kubernetes, and who does the rest?

Play the animation 5 steps, animated, plays on a computer or a tablet

Flat Pod Network Model diagram: The Kubernetes network model, drawn as four Pods across three Nodes, where every Pod

Flat Pod Network Model, step by step

  1. Rule one: every Pod not on hostNetwork gets its own IP, unique across the entire cluster. A Pod sees that same address as the one other Pods use to reach it, so there is no port mapping and no rewriting to reason about.

    Play from step 1
  2. Rule two: any Pod can reach any other Pod on any Node directly, with no NAT on the way, barring intentional segmentation such as a NetworkPolicy. The source address that arrives is the real Pod IP, here 10.244.1.5, even when the packet crosses to another Node.

    Play from step 2
  3. The address space is the same within one Node. Pod 10.244.1.5 reaches its neighbour on Node-1, Pod 10.244.1.6, with the same flat addressing and no NAT. The traffic never leaves the Node, and for the Pods it is the same model, with no special case.

    Play from step 3
  4. Rule three is narrower, and it is about the guarantee and not the reach: the model promises the Kubelet only the Pods on its own Node. The Kubelet on Node-2 talks to Pod 10.244.2.7 to run the network probes that say whether that Pod is live and ready. Other Nodes are outside the promise.

    Play from step 4
  5. Only a few parts of this live in the core. The container runtime on each Node implements the model, almost always through a CNI plugin such as Calico, Cilium or Flannel. Here the plugin lights the whole network. With another plugin in its place the model stays the same.

    Play from step 5

Sources