Traefik with K8s as Ingress: Forward the origin IP of an client to the pods

Hi, is it possible to forward the ip from a client to the k8s pods?

Hello @scolastico,

You may want to take a look at (, since this document outlines how kubernetes uses NAT to route traffic to pods.

If you configure your services and load balancers to preserve the source IP, then traefik will forward it properly via the X-Real-IP header.

1 Like

Patching the k3s Traefik LoadBalancer service to use

externalTrafficPolicy: Local

as described in that documentation does not get the client IP to the service under any of the headers