How to set the X-Forwarded-For header in TraefikEE v2?

We are using TraefikEE in Google Kubernetes Engines and all our ingresses are in yaml files. I couldn't find any relevant info in the community docs: https://docs.traefik.io/v2.1/ to set the X-Forwared-For header before sending the traffic to the downstream services. Please let me know how to do that.

Thanks !

Hello Deepak,

Have you tried the Headers middleware? https://docs.traefik.io/v2.1/middlewares/headers/

I believe that is what you are looking for adding/modifying headers before sending the request downstream.

I have the same question, I'm using kubernetes ingress (not CRD), I couldn't find any documents to set the headers anymore.