From b448f7926905084b0ca07cd6eb2f641e8c4415f1 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Fri, 23 Dec 2022 22:22:33 +0100 Subject: [PATCH] Revert Adminer stack override;Increase InotifyLimits --- services/Adminer/deploy-Adminer.yml | 10 +++---- .../InotifyLimits/daemonSet-InotifyLimits.yml | 29 +++++++++++++++++++ .../daemonSet-InotifyMaxWatchers.yml | 25 ---------------- 3 files changed, 34 insertions(+), 30 deletions(-) create mode 100644 system/InotifyLimits/daemonSet-InotifyLimits.yml delete mode 100644 system/InotifyMaxWatchers/daemonSet-InotifyMaxWatchers.yml diff --git a/services/Adminer/deploy-Adminer.yml b/services/Adminer/deploy-Adminer.yml index c0ec827..8196312 100644 --- a/services/Adminer/deploy-Adminer.yml +++ b/services/Adminer/deploy-Adminer.yml @@ -30,11 +30,11 @@ spec: containers: - name: adminer image: bv11-cr01.bessems.eu/proxy/library/adminer - args: - - '-S' - - '0.0.0.0:8080' - - '-t' - - '/var/www/html' +# args: +# - '-S' +# - '0.0.0.0:8080' +# - '-t' +# - '/var/www/html' envFrom: - secretRef: name: adminer-secret diff --git a/system/InotifyLimits/daemonSet-InotifyLimits.yml b/system/InotifyLimits/daemonSet-InotifyLimits.yml new file mode 100644 index 0000000..d1406cf --- /dev/null +++ b/system/InotifyLimits/daemonSet-InotifyLimits.yml @@ -0,0 +1,29 @@ +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 diff --git a/system/InotifyMaxWatchers/daemonSet-InotifyMaxWatchers.yml b/system/InotifyMaxWatchers/daemonSet-InotifyMaxWatchers.yml deleted file mode 100644 index 95864b8..0000000 --- a/system/InotifyMaxWatchers/daemonSet-InotifyMaxWatchers.yml +++ /dev/null @@ -1,25 +0,0 @@ -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"