Skip to content

Instantly share code, notes, and snippets.

@edison7500
Last active June 19, 2020 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edison7500/99cbd6e4bdb81f0a5a6fc16b19f9afe9 to your computer and use it in GitHub Desktop.
Save edison7500/99cbd6e4bdb81f0a5a6fc16b19f9afe9 to your computer and use it in GitHub Desktop.
{
"spec": {
"template": {
"spec": {
"initContainers": [{
"name": "sysctl",
"image": "alpine:3.10",
"securityContext": {
"privileged": true
},
"command": [
"sh",
"-c",
"sysctl -w net.core.somaxconn=32768; sysctl -w net.ipv4.ip_local_port_range='1024 65000'; sysctl -w net.ipv4.tcp_max_syn_backlog=1024"
]
}]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment