feat(common): add an initial inotify patch (#1854)
* feat(common): add an initial inotify patch * turn two around
This commit is contained in:
@@ -15,4 +15,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
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 }}
|
{{- end }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- include "common.controller.autopermissions" . | nindent 2 }}
|
{{- include "common.controller.autopermissions" . | nindent 2 }}
|
||||||
|
{{- include "common.controller.inotify" . | nindent 2 }}
|
||||||
{{- include "common.dependencies.postgresql.init" . | nindent 2 }}
|
{{- include "common.dependencies.postgresql.init" . | nindent 2 }}
|
||||||
{{- if .Release.IsInstall }}
|
{{- if .Release.IsInstall }}
|
||||||
{{- if .Values.installContainers }}
|
{{- if .Values.installContainers }}
|
||||||
|
|||||||
Reference in New Issue
Block a user