ingress-nginx-helm/docs/examples/customization/configuration-snippets/README.md

15 lines
541 B
Markdown
Raw Normal View History

2018-04-24 10:18:29 +00:00
# Configuration Snippets
2017-10-13 13:55:03 +00:00
## Ingress
2018-04-24 10:18:29 +00:00
2018-06-29 13:37:21 +00:00
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](/examples/customization/custom-headers/README).
2017-10-13 13:55:03 +00:00
```console
$ 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`