Merge branch 'allow-probe-customisation' into 'master'

Allow probe customisation

See merge request ananace/charts!7
This commit is contained in:
Alexander Olofsson 2021-03-24 05:03:25 +00:00
commit bffedcc722
2 changed files with 28 additions and 0 deletions

View file

@ -52,6 +52,17 @@ spec:
command: command:
- stat - stat
- /run/funkwhale/funkwhale.sock - /run/funkwhale/funkwhale.sock
failureThreshold: {{ .Values.api.readinessProbe.failureThreshold | default 3 }}
periodSeconds: {{ .Values.api.readinessProbe.periodSeconds | default 5 }}
initialDelaySeconds: {{ .Values.api.readinessProbe.initialDelaySeconds | default 5 }}
startupProbe:
exec:
command:
- stat
- /run/funkwhale/funkwhale.sock
failureThreshold: {{ .Values.api.startupProbe.failureThreshold | default 3 }}
periodSeconds: {{ .Values.api.startupProbe.periodSeconds | default 20 }}
initialDelaySeconds: {{ .Values.api.startupProbe.initialDelaySeconds | default 5 }}
envFrom: envFrom:
- configMapRef: - configMapRef:
name: {{ include "funkwhale.fullname" . }} name: {{ include "funkwhale.fullname" . }}
@ -97,9 +108,21 @@ spec:
httpGet: httpGet:
path: / path: /
port: http port: http
failureThreshold: {{ .Values.front.livenessProbe.failureThreshold | default 3 }}
periodSeconds: {{ .Values.front.livenessProbe.periodSeconds | default 20 }}
initialDelaySeconds: {{ .Values.front.livenessProbe.initialDelaySeconds | default 15 }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: http port: http
failureThreshold: {{ .Values.front.readinessProbe.failureThreshold | default 3 }}
periodSeconds: {{ .Values.front.readinessProbe.periodSeconds | default 5 }}
initialDelaySeconds: {{ .Values.front.readinessProbe.initialDelaySeconds | default 5 }}
startupProbe:
tcpSocket:
port: http
failureThreshold: {{ .Values.front.startupProbe.failureThreshold | default 3 }}
periodSeconds: {{ .Values.front.startupProbe.periodSeconds | default 20 }}
initialDelaySeconds: {{ .Values.front.startupProbe.initialDelaySeconds | default 5 }}
volumeMounts: volumeMounts:
- mountPath: /run/funkwhale - mountPath: /run/funkwhale
name: funkwhale-sock name: funkwhale-sock

View file

@ -127,6 +127,8 @@ api:
tolerations: [] tolerations: []
affinity: {} affinity: {}
readinessProbe: {}
startupProbe: {}
front: front:
image: image:
@ -158,6 +160,9 @@ front:
tolerations: [] tolerations: []
affinity: {} affinity: {}
readinessProbe: {}
livenessProbe: {}
startupProbe: {}
celery: celery:
beat: beat: