Revert Adminer stack override;Increase InotifyLimits
This commit is contained in:
parent
eb399f4cb7
commit
b448f79269
@ -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
|
||||||
|
29
system/InotifyLimits/daemonSet-InotifyLimits.yml
Normal file
29
system/InotifyLimits/daemonSet-InotifyLimits.yml
Normal 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
|
@ -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"
|
|
Loading…
Reference in New Issue
Block a user