ingress-nginx/docs/examples/customization/sysctl
Marco Ebert 75217c0e2b
Images: Use Alpine v3.22.1. (#13869)
2025-09-01 06:49:14 -07:00
..
README.md Minor documentation cleanup (#7826) 2022-01-16 16:57:28 -08:00
patch.json Images: Use Alpine v3.22.1. (#13869) 2025-09-01 06:49:14 -07:00

README.md

Sysctl tuning

This example aims to demonstrate the use of an Init Container to adjust sysctl default values using kubectl patch.

kubectl patch deployment -n ingress-nginx ingress-nginx-controller \
    --patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/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, it is possible to see an explanation for the changes.