ingress-nginx/docs/examples/customization/configuration-snippets
Giancarlo Rubio c60ed24f4b Detect if header injected request_id before creating one 2018-04-17 15:49:35 +02:00
..
README.md Fix link to custom configuration (#1814) 2017-12-10 19:09:30 -06:00
ingress.yaml Detect if header injected request_id before creating one 2018-04-17 15:49:35 +02:00

README.md

Ingress

The Ingress in this example adds a custom header to Nginx configuration that only applies to that specific Ingress. If you want to add headers that apply globally to all Ingresses, please have a look at this example.

$ kubectl apply -f ingress.yaml

Test

Check if the contents of the annotation are present in the nginx.conf file using: kubectl exec nginx-ingress-controller-873061567-4n3k2 -n kube-system cat /etc/nginx/nginx.conf