2018-04-24 13:18:29 +03:00
# Custom Configuration
2017-03-30 23:01:45 -03:00
2018-03-22 19:32:33 +08:00
Using a [ConfigMap ](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ ) is possible to customize the NGINX configuration
2017-03-30 23:01:45 -03:00
For example, if we want to change the timeouts we need to create a ConfigMap:
```
2017-10-16 09:55:46 -03:00
$ cat configmap.yaml
2017-03-30 23:01:45 -03:00
apiVersion: v1
data:
proxy-connect-timeout: "10"
proxy-read-timeout: "120"
proxy-send-timeout: "120"
kind: ConfigMap
metadata:
2018-09-30 10:51:42 +08:00
name: nginx-configuration
2017-03-30 23:01:45 -03:00
```
```
2017-10-20 22:38:27 -03:00
curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/customization/custom-configuration/configmap.yaml \
2017-10-16 09:55:46 -03:00
| kubectl apply -f -
2017-03-30 23:01:45 -03:00
```
If the Configmap it is updated, NGINX will be reloaded with the new configuration.