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