Nginx Ingress controller proxy headers set

Please use this template for troubleshooting questions.

My issue: I am using nginx ingress controller 1.12.1 and require to pass some custom headers using the dynamic values received after authentication. But by default config snippet is disable in this version what can I do to pass these headers. Is there any alternative or i need to enable the allow snippet option

How I encountered the problem:

Solutions I’ve tried:

Version of NIC and/or NGINX:1.12.1

Deployment environment:

Hi @Lavleen_Rana , from the version it looks like you’re using GitHub - kubernetes/ingress-nginx: Ingress NGINX Controller for Kubernetes which is a different project maintained by k8s community. This forum is for GitHub - nginx/kubernetes-ingress: NGINX and NGINX Plus Ingress Controllers for Kubernetes

With that being said, if you’re interested in moving to GitHub - nginx/kubernetes-ingress: NGINX and NGINX Plus Ingress Controllers for Kubernetes as the other project will be soon be retired The Ingress NGINX Alternative: Open Source NGINX Ingress Controller for the Long Term – NGINX Community Blog
have a look at recent AMA Live AMA: Transitioning to the Open Source NGINX Ingress Controller from ingress-nginx - Dec 10, 11 and feel free to open an issue on github or ask any questions you might’ve here.

In NIC you’d need to enable snippets via and argument in yaml or a value in helm chart, see:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.