4

I have an app which runs on AKS, using nginx ingress and is exposed through Azure Application Gateway.

When I access the app through the gateway, the client IP is replaced with the Application Gateway IP (showing into ingress logs).

I configured ingress with --set controller.service.externalTrafficPolicy=Local.

I tried to add a rewrite rule on the Gateway to force X-FORWARDED-FOR header with {var_client_ip} value.

What I have missed ?

rock'n rolla
  • 1,883
  • 1
  • 13
  • 19

0 Answers0