Set Traefik externalTrafficPolicy=Local to preserve client IP

FixKlusterServices
Shipped
lúc 01:59 18 tháng 4, 2026 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

Như những gì anh thấy vận chuyển?

Mỗi một bản cập nhật này đều được tự động cập nhật trong không gian làm việc của bạn. Bắt đầu tự do và xem nó lớn lên tuần này qua tuần khác.

Bắt đầu tự do mãi mãiXem truy cập