Created
September 17, 2019 21:44
-
-
Save ianblenke/e3d033bb2331fc19c97ab6c13a4001ba 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: 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