Skip to content

Instantly share code, notes, and snippets.

@chrishiestand
Last active February 2, 2017 07:53
Show Gist options
  • Save chrishiestand/915fa9e543725226f73e72823c1e0ace to your computer and use it in GitHub Desktop.
Save chrishiestand/915fa9e543725226f73e72823c1e0ace to your computer and use it in GitHub Desktop.
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