Kubernetes.K3s.installLog/system/InotifyMaxWatchers/daemonSet-InotifyMaxWatchers.yml

26 lines
657 B
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: inotify-max-watchers
namespace: kube-system
spec:
selector:
matchLabels:
app: inotify-max-watchers
template:
metadata:
name: inotify-max-watchers
labels:
app: inotify-max-watchers
spec:
containers:
- name: inotify-max-watchers
image: bv11-cr01.bessems.eu/proxy/library/alpine
imagePullPolicy: Always
securityContext:
privileged: true
command:
- "/bin/sh"
- "-c"
- "echo 'fs.inotify.max_user_watches=524288' | tee /etc/sysctl.conf; sysctl -p && tail -f /dev/null"