Hello vi,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
Problem
I understand that you would like to know if there any alternate for get or enable "allow-snippet-annotations" = true for view the incoming headers.
Solution
There are two ways If you're working with the NGINX Ingress controller in an AKS cluster and need to enable snippet annotations to view incoming headers.
- If your Ingress controller was initially installed using a Helm chart, you can set
allowSnippetAnnotations=true
in the Helm values file and ensure you have access to the exact chart and values file used for the initial installation. Also, upgrade the Helm release with the updated values file to enable snippet annotations. - You can directly set the value during the Helm upgrade command: helm upgrade --namespace ingress-nginx --install --set allowSnippetAnnotations=true --wait ingress-nginx ingress-nginx/ingress-nginx So, adjust the namespace and release name as needed.
References
Use the links below for more steps and reading.
- Advanced configuration with Snippets NGINX Ingress Controller.
- Kubernetes ingress not enforcing inserting hsts into headers.
Accept Answer
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam