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