Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created September 17, 2019 21:44
Show Gist options
  • Save ianblenke/e3d033bb2331fc19c97ab6c13a4001ba to your computer and use it in GitHub Desktop.
Save ianblenke/e3d033bb2331fc19c97ab6c13a4001ba to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: sysctl
namespace: kube-system
labels:
k8s-app: sysctl
spec:
selector:
matchLabels:
name: sysctl
template:
metadata:
labels:
name: sysctl
spec:
containers:
- name: "sysctl"
image: "busybox:latest"
resources:
limits:
cpu: "10m"
memory: "8Mi"
requests:
cpu: "10m"
memory: "8Mi"
securityContext:
privileged: true
command:
- "/bin/sh"
- "-c"
- |
set -o errexit
set -o xtrace
while sysctl -w fs.inotify.max_user_watches=1048576
do
sleep 60s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment