I effectively try to make sure, X-Forwarded* headers are sent to the services in k8s through the ingress. I tried to update the ingress-nginx helm chart values:
values:
{
.// other settings..,
proxySetHeaders: {
"X-Forwarded-For": "$proxy_add_x_forwarded_for;",
"X-Forwarded-Proto": "$scheme;"
}
}}, // ...
but pulumi didn't recognize that change. I then also tried to add some annotations to the ingress defined for a specific service, using the configuration-snippet annotation (
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#configuration-snippet), but without success.
Can anyone point me into a direction how to find out how to perform the configuration to make the ingress-nginx set the X-Forwarded* headers? Thanks 🙂