Revert Adminer stack override;Increase InotifyLimits

This commit is contained in:
Danny Bessems 2022-12-23 22:22:33 +01:00
parent eb399f4cb7
commit b448f79269
3 changed files with 34 additions and 30 deletions

View File

@ -30,11 +30,11 @@ spec:
containers: containers:
- name: adminer - name: adminer
image: bv11-cr01.bessems.eu/proxy/library/adminer image: bv11-cr01.bessems.eu/proxy/library/adminer
args: # args:
- '-S' # - '-S'
- '0.0.0.0:8080' # - '0.0.0.0:8080'
- '-t' # - '-t'
- '/var/www/html' # - '/var/www/html'
envFrom: envFrom:
- secretRef: - secretRef:
name: adminer-secret name: adminer-secret

View File

@ -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

View File

@ -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"