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