ingress-nginx-helm/docs/examples/customization/custom-headers
Wong Hoi Sing Edison 6d3e9ea7d0 Fixup #2970: Add Missing Label app.kubernetes.io/part-of: ingress-nginx
-    Add missing label `app.kubernetes.io/part-of: ingress-nginx` for deploy example
-    Update new labels for docs/deploy and docs/examples
-    Update new labels for test/e2e and test/manifests
-    Update new labels for images/nginx

Also close #3001
2018-09-05 11:48:29 +08:00
..
configmap.yaml Fixup #2970: Add Missing Label app.kubernetes.io/part-of: ingress-nginx 2018-09-05 11:48:29 +08:00
custom-headers.yaml Update documentation and examples [ci skip] 2017-10-16 09:55:46 -03:00
README.md Fix some document titles 2018-04-26 13:57:18 +03:00

Custom Headers

This example aims to demonstrate the deployment of an nginx ingress controller and use a ConfigMap to configure a custom list of headers to be passed to the upstream server

curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/customization/custom-headers/configmap.yaml \
    | kubectl apply -f -

curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/customization/custom-headers/custom-headers.yaml \
    | kubectl apply -f -

Test

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