Skip to main content
Kubernetes internalsLesson 9 of 12

A Packet from Pod to Pod

Services and DNS decide "where to send". This lesson covers what comes next. We follow a packet (a chunk of data on the network) through the actual devices it crosses, down inside the node, until it reaches another Pod. The path of outside requests is in How a Request Reaches a Pod, and name resolution is in Finding Services by Name (Service·DNS).

Source IP10.244.1.5
Destination IP10.244.1.6
Path—
Node A · 10.0.0.11Node B · 10.0.0.12web10.244.1.5cache10.244.1.6NAT ruleskube-proxyNode A networkvirtual devs · routesCNIe.g. CiliumNode B networkvirtual devs · routesapi10.244.2.7Physical netknows node IPs only10.244.1.6
RequestResponse / reportAppears in a later step

What you will learn

  • The rule: every Pod gets an IP, no NAT
  • How CNI connects a Pod to the network
  • Why packets are wrapped across nodes, and the MTU issue
  • Where a Service IP becomes a Pod IP

Narrowing down the layer by symptom​

SymptomLayer to suspectWhat to check
A new node stays NotReadyCNIWhether the CNI plugin is installed and running on that node
Pods on the same node talk, but not across nodesCross-node routingOverlay or direct routing setup, firewalls between nodes
Small requests work, large responses get cutOverlay MTUWhether the Pod-side MTU is smaller than the physical MTU
Works via Pod IP, fails via Service IPNAT rules / ServiceWhether the Service targets (endpoints) include ready Pods

Try it yourself​

kubectl get pods -o wide # Pod IP and node
kubectl get nodes -o custom-columns=NAME:.metadata.name,PODCIDR:.spec.podCIDR # Pod range per node (empty with some CNIs)
ip route # (On a node) routes to other nodes' Pod ranges
kubectl get endpointslices -l kubernetes.io/service-name=<service> # Pod IPs behind the Service IP
kubectl get configmap kube-proxy -n kube-system -o jsonpath='{.data.config\.conf}' | grep mode # kube-proxy mode (empty = iptables)

Check yourself

  1. Login works, but large list queries between Pods on different nodes fail. Which layer should you suspect?
  2. Pods on the same node talk fine, but traffic to Pods on other nodes fails. What should you check?
  3. Where does a Service IP like 10.96.12.34 get turned into a Pod IP?

Further reading: Cluster networking · Service · Virtual IPs and service proxies