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.
Step 1 of 5
Something on every node wires pods into the network. Find the workload in
kube-systemthat runs one pod per node for that job onkx.Checked against what your commands print.
Step 2, not started: Print the pod address range that each node hands out from.
Step 3, not started: Pick an
echopod on a different node fromclientand fetch it directly by its pod IP fromclient. The echo server prints the address the request came from: compare it with the IP ofclient.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.Step 5, not started: Give the
echopods a stable address: a ClusterIP Service calledechoon port 80. Then fetchhttp://echofromclientand check which address the echo server reports for the caller this time.
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.