NODE 1 · 10.244.1.0/24NODE 2 · 10.244.2.0/24web10.244.1.3api10.244.1.4kube-proxy rulesapi10.244.2.5coredns10.244.2.2Service api10.96.0.20 : 801from urllib.request import urlopen2r = urlopen("http://api/items")3print(r.status)EndpointSlicefor apiENDPOINT 1 · :8080–ENDPOINT 2 · :8080–1apiVersion: v12kind: Service3metadata: {name: api}4spec:5 selector: {app: api}6 ports:7 - port: 808 targetPort: 8080
Back: two nodes and their Pods (blue web, green api, yellow DNS) and node 1's kube-proxy rulesMiddle: the Service and its EndpointSlice · Front: the Python client and the Service YAMLEnvelope: one packet, its destination written above itTwo nodes, four Pods, each with its own IP. Pods reach each other directly, but they come and go, so their IPs change. The Service api gives them one stable virtual address, 10.96.0.20; its EndpointSlice lists the ready Pods. One request from web's Python code asks DNS for api, is sent to the ClusterIP, is rewritten by node 1's kube-proxy rules to a real Pod, and comes back. iptables is the default kube-proxy mode on Linux today; it can also run in nftables mode (its planned successor) or the older ipvs mode (deprecated since Kubernetes v1.35); some network plugins, such as Cilium, replace kube-proxy with their own rules. The idea is the same: a packet for the ClusterIP is rewritten to one ready Pod.

Pods and their IPs

  1. A Pod is the smallest thing Kubernetes runs: one or more containers that share one network address. Each Pod gets its own IP. Pods on node 1 get 10.244.1.x and Pods on node 2 get 10.244.2.x. Containers inside one Pod talk over localhost.

A stable Service

Following one request

What happens

;; step 1/10 · pod-ip
cluster Pod network   10.244.0.0/16
  node-1  10.244.1.0/24
  node-2  10.244.2.0/24

  web Pod    10.244.1.3
  api Pod 1  10.244.1.4
  api Pod 2  10.244.2.5

containers in one Pod → localhost

The Kubernetes network model gives every Pod its own cluster-wide IP and lets Pods reach each other without NAT. Kubernetes does not build that network itself: a CNI network plugin such as Flannel, Calico or Cilium does. The address ranges are common defaults, not rules: 10.244.0.0/16 is Flannel's default Pod network (one /24 per node) and 10.96.0.0/12 is kubeadm's default Service range. Your cluster may use others.