ingress-nginx-helm/docs/examples/customization/custom-configuration
2017-10-16 09:55:46 -03:00
..
configmap.yaml Update documentation and examples [ci skip] 2017-10-16 09:55:46 -03:00
README.md Update documentation and examples [ci skip] 2017-10-16 09:55:46 -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 configmap.yaml
apiVersion: v1
data:
  proxy-connect-timeout: "10"
  proxy-read-timeout: "120"
  proxy-send-timeout: "120"
kind: ConfigMap
metadata:
  name: nginx-load-balancer-conf
curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/customization/cutom-configuration/configmap.yaml \
    | kubectl apply -f -

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