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 (https://kubernetes.io/docs/tutorials/services/source-ip/), 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