External Traffic Policy とは?
external traffic policy は、service への外部由来のトラフィックが node に到達した後どう扱われるかを決めます。cluster 設定はどの node の backend にも分散させますが元の client IP を隠し、local 設定は同じ node の pod にのみ送ることで client IP を保持し、余分なホップを避けます。この選択は均等な load balancing と source IP の忠実性とのトレードオフになります。
なぜ重要か
local policy は、logging や rate limiting のために本物の client IP を保つ方法ですが、受信する各 node に pod が必要になります。誤った選択をすると、client IP がマスクされたり、トラフィックの分散が偏ったりします。
関連ガイド
What Is a Load Balancer IP?A load balancer IP is the external address provisioned for a LoadBalancer service, the public entry point tha…
What Is the Node Port Range?The node port range is the band of high-numbered ports a cluster can allocate for NodePort services, exposing…
What Is Service Topology?Service topology is routing that prefers backends close to the client, such as on the same node or zone, to c…