Skip to content

Instantly share code, notes, and snippets.

@sttts
Created September 21, 2016 08:56
Show Gist options
  • Save sttts/5b1e4fde474ae7ac5d3f024475b013f2 to your computer and use it in GitHub Desktop.
Save sttts/5b1e4fde474ae7ac5d3f024475b013f2 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: sysctl
annotations:
security.alpha.kubernetes.io/sysctls: kernel.shm_rmid_forced=1
spec:
containers:
- name: sysctl
image: busybox
command:
- /bin/sh
- -exc
- >
while sleep 1; do sysctl kernel.shm_rmid_forced; done
restartPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment