Last active
June 19, 2020 15:05
-
-
Save edison7500/99cbd6e4bdb81f0a5a6fc16b19f9afe9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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