Set Traefik externalTrafficPolicy=Local to preserve client IP

FixKlusterServices
Shipped
18 Aprili 2026, 01:59 UTC
Author
Kamo
Commit
11dd645

With the default "Cluster" policy, kube-proxy SNATs external traffic to the node IP before forwarding to Traefik. That caused Traefik to see the node IP as the source and put it in X-Forwarded-For, which broke IP-based geo lookup in kamo-analytics (visitor locations on world map stayed empty). "Local" policy skips SNAT and passes the original client IP through, which is what IP-based analytics needs.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei