ingress-nginx-helm/docs/examples/customization/sysctl/README.md
Manuel Alejandro de Brito Fontes d890303a3f
Fix markdown list (#4801)
2019-12-01 21:57:09 -03:00

15 lines
656 B
Markdown

# Sysctl tuning
This example aims to demonstrate the use of an Init Container to adjust sysctl default values using `kubectl patch`
```console
kubectl patch deployment -n ingress-nginx nginx-ingress-controller \
--patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/customization/sysctl/patch.json)"
```
**Changes:**
- Backlog Queue setting `net.core.somaxconn` from `128` to `32768`
- Ephemeral Ports setting `net.ipv4.ip_local_port_range` from `32768 60999` to `1024 65000`
In a [post from the NGINX blog](https://www.nginx.com/blog/tuning-nginx/), it is possible to see an explanation for the changes.