ingress-nginx/docs/examples/customization/configuration-snippets
wi1dcard be5be27a8e Fix kubectl exec deprecated usage in docs.
See:

* https://github.com/kubernetes/kubernetes/pull/88460
* https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/exec/exec.go#L180
2020-07-09 09:24:50 +08:00
..
README.md Fix kubectl exec deprecated usage in docs. 2020-07-09 09:24:50 +08:00
ingress.yaml Migrate ingress definitions from extensions to networking.k8s.io 2019-12-12 21:25:00 -03:00

README.md

Configuration Snippets

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 ingress-nginx-controller-873061567-4n3k2 -n kube-system -- cat /etc/nginx/nginx.conf