ingress-nginx-helm/examples/customization/custom-configuration/nginx
Manuel de Brito Fontes 83cb03b51c Release 0.9-beta.5
2017-04-27 20:28:05 -03:00
..
nginx-custom-configuration.yaml Release 0.9-beta.5 2017-04-27 20:28:05 -03:00
nginx-load-balancer-conf.yaml Fix link to custom nginx configuration 2017-03-30 23:01:45 -03:00
README.md Fix link to custom nginx configuration 2017-03-30 23:01:45 -03:00

Using a ConfigMap is possible to customize the NGINX configuration

For example, if we want to change the timeouts we need to create a ConfigMap:

$ cat nginx-load-balancer-conf.yaml
apiVersion: v1
data:
  proxy-connect-timeout: "10"
  proxy-read-timeout: "120"
  proxy-send-timeout: "120"
kind: ConfigMap
metadata:
  name: nginx-load-balancer-conf
$ kubectl create -f nginx-load-balancer-conf.yaml

Please check the example nginx-custom-configuration.yaml

If the Configmap it is updated, NGINX will be reloaded with the new configuration.