Last active
February 2, 2017 07:53
-
-
Save chrishiestand/915fa9e543725226f73e72823c1e0ace to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: sysctl-buddy | |
spec: | |
containers: | |
- image: alpine | |
command: | |
- /bin/sh | |
args: | |
- -c | |
- echo never | tee /sys/kernel/mm/transparent_hugepage/enabled && sysctl -w net.core.somaxconn=8192 vm.overcommit_memory=1 && sleep 9999999d | |
imagePullPolicy: Always | |
name: sysctl-buddy | |
securityContext: | |
privileged: true | |
lifecycle: | |
preStop: | |
exec: | |
command: ["/usr/bin/killall","sleep"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment