Intermediate commit (migrating Harbor to separate VM)

This commit is contained in:
2020-11-14 23:57:19 +01:00
parent 62779d47b2
commit 969b71211b
6 changed files with 71 additions and 471 deletions

View File

@ -0,0 +1,25 @@
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: 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"