From e54f07fd3f06364c89256bec15f111e34d0e989b Mon Sep 17 00:00:00 2001 From: Florian Piesche Date: Sun, 14 Mar 2021 22:13:11 +0000 Subject: [PATCH] Allow customising readiness and liveness probes for slow setups. --- charts/funkwhale/templates/deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/funkwhale/templates/deployment.yaml b/charts/funkwhale/templates/deployment.yaml index 6fbf379..5cb8e11 100644 --- a/charts/funkwhale/templates/deployment.yaml +++ b/charts/funkwhale/templates/deployment.yaml @@ -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