k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/prow/cluster/build/tune-sysctls_daemonset.yaml (about) 1 # a simple daemonset to tune sysctls 2 # intended to be used in a prow build cluster 3 apiVersion: apps/v1 4 kind: DaemonSet 5 metadata: 6 name: tune-sysctls 7 namespace: kube-system 8 labels: 9 app: tune-sysctls 10 spec: 11 selector: 12 matchLabels: 13 name: tune-sysctls 14 updateStrategy: 15 type: RollingUpdate 16 rollingUpdate: 17 maxUnavailable: "10%" 18 template: 19 metadata: 20 labels: 21 name: tune-sysctls 22 spec: 23 hostNetwork: true 24 hostPID: true 25 hostIPC: true 26 tolerations: 27 - operator: Exists 28 effect: NoSchedule 29 containers: 30 - name: setsysctls 31 command: 32 - sh 33 - -c 34 - | 35 while true; do 36 sysctl -w fs.inotify.max_user_watches=524288 37 sleep 10 38 done 39 image: alpine:20231219 40 imagePullPolicy: IfNotPresent 41 resources: {} 42 securityContext: 43 privileged: true 44 volumeMounts: 45 - name: sys 46 mountPath: /sys 47 volumes: 48 - name: sys 49 hostPath: 50 path: /sys