feat(common): add an initial inotify patch (#1854)

* feat(common): add an initial inotify patch

* turn two around
This commit is contained in:
Kjeld Schouten-Lebbing
2022-02-06 14:01:33 +01:00
committed by GitHub
parent 044faac33c
commit d64463d13c
4 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 8.14.5
version: 8.15.0
@@ -0,0 +1,15 @@
{{/*
This template serves as the blueprint for the mountPermissions job that is run
before chart installation.
*/}}
{{- define "common.controller.inotify" -}}
- name: inotify
image: {{ .Values.alpineImage.repository }}:{{ .Values.alpineImage.tag }}
securityContext:
runAsUser: 0
privileged: true
command:
- "/bin/sh"
- "-c"
- "sysctl -w fs.inotify.max_user_watches=524288 && sysctl -w fs.inotify.max_user_instances=512 "
{{- end -}}
@@ -51,6 +51,7 @@ terminationGracePeriodSeconds: {{ . }}
{{- end }}
initContainers:
{{- include "common.controller.autopermissions" . | nindent 2 }}
{{- include "common.controller.inotify" . | nindent 2 }}
{{- include "common.dependencies.postgresql.init" . | nindent 2 }}
{{- if .Release.IsInstall }}
{{- if .Values.installContainers }}