Allow customising readiness and liveness probes for slow setups.

This commit is contained in:
Florian Piesche 2021-03-14 22:13:11 +00:00
parent dacb080c78
commit e54f07fd3f
No known key found for this signature in database
GPG key ID: CF7283FB896221F3

View file

@ -52,6 +52,9 @@ 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 10 }}
initialDelaySeconds: {{ .values.api.readinessProbe.initialDelaySeconds | default 5 }}
envFrom: envFrom:
- configMapRef: - configMapRef:
name: {{ include "funkwhale.fullname" . }} name: {{ include "funkwhale.fullname" . }}
@ -97,9 +100,15 @@ spec:
httpGet: httpGet:
path: / path: /
port: http port: http
failureThreshold: {{ .values.front.livenessProbe.failureThreshold | default 3 }}
periodSeconds: {{ .values.front.livenessProbe.periodSeconds | default 10 }}
initialDelaySeconds: {{ .values.front.livenessProbe.initialDelaySeconds | default 5 }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: http port: http
failureThreshold: {{ .values.front.readinessProbe.failureThreshold | default 3 }}
periodSeconds: {{ .values.front.readinessProbe.periodSeconds | default 10 }}
initialDelaySeconds: {{ .values.front.readinessProbe.initialDelaySeconds | default 5 }}
volumeMounts: volumeMounts:
- mountPath: /run/funkwhale - mountPath: /run/funkwhale
name: funkwhale-sock name: funkwhale-sock