Trace the pod network

  • 10 min
  • 5 steps
  • Networking

Steps

0 of 5 done

Find the network plugin, read each node's pod range, reach a pod on another node by its IP, and see where Service addresses come from.

  1. Step 1 of 5

    Something on every node wires pods into the network. Find the workload in kube-system that runs one pod per node for that job on kx.

    Checked against what your commands print.

  2. Step 2, not started: Print the pod address range that each node hands out from.

  3. Step 3, not started: Pick an echo pod on a different node from client and fetch it directly by its pod IP from client. The echo server prints the address the request came from: compare it with the IP of client.

  4. Step 4, not started: Service addresses come from a different range from pod addresses, and a different component hands them out. Find the range the API server allocates cluster IPs from on kx.

  5. Step 5, not started: Give the echo pods a stable address: a ClusterIP Service called echo on port 80. Then fetch http://echo from client and check which address the echo server reports for the caller this time.

Lab terminal

Cluster time 50 seconds
kind cluster kx, Kubernetes 1.37.
Each step is checked as you work.
​
Tab completes. Up and Down recall.
Type help for more.
Terminal keys

Enter runs the command. Tab completes, and the arrow keys recall earlier commands. Control C stops a watch. On an empty line, or after Escape, Tab moves focus out of the terminal.