CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Administrator

Service Traffic Policies and Source IP

One Pod on one node, reached through every node's NodePort. Flipping externalTrafficPolicy changes both what the backend sees and which nodes answer, and internalTrafficPolicy does the same thing to traffic that never leaves the cluster.

Services and Networking Guide 52 of 103 Advanced

Written against the versions above. Node addresses are this lab's. What matters is which address the backend reports, not its value.

Four nodes, and the point of this page is the difference between the two workers: only node01 hosts the backend.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE01192.168.0.176Ubuntu 26.04 LTSWorker - hosts the only backend Pod2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker - no backend Pod, used to prove the difference2 Core4 GB50 GB
CKA1001-NODE03192.168.0.178Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. One backend, pinned to a node you know

  2. Who the backend thinks is calling

  3. Switch the policy and ask again

  4. The same idea for traffic that never leaves the cluster

Official sources