Getting Real Client IP (X-Real-Ip) on Kubernetes , Traefik

traefik Jul 27, 2020

If you have an application on kubernetes and use traefik as load balancer. Client ip can be seen on the internal network.

As a solution, set "externalTrafficPolicy: Local"   in Traefik load balancer service configuration

client ip will now come as real ip


Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.