Add customisable startup probes.
This commit is contained in:
parent
cf8f81e87d
commit
2d666d597e
2 changed files with 20 additions and 4 deletions
|
@ -53,8 +53,16 @@ spec:
|
||||||
- stat
|
- stat
|
||||||
- /run/funkwhale/funkwhale.sock
|
- /run/funkwhale/funkwhale.sock
|
||||||
failureThreshold: {{ .Values.api.readinessProbe.failureThreshold | default 3 }}
|
failureThreshold: {{ .Values.api.readinessProbe.failureThreshold | default 3 }}
|
||||||
periodSeconds: {{ .Values.api.readinessProbe.periodSeconds | default 10 }}
|
periodSeconds: {{ .Values.api.readinessProbe.periodSeconds | default 5 }}
|
||||||
initialDelaySeconds: {{ .Values.api.readinessProbe.initialDelaySeconds | 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" . }}
|
||||||
|
@ -101,14 +109,20 @@ spec:
|
||||||
path: /
|
path: /
|
||||||
port: http
|
port: http
|
||||||
failureThreshold: {{ .Values.front.livenessProbe.failureThreshold | default 3 }}
|
failureThreshold: {{ .Values.front.livenessProbe.failureThreshold | default 3 }}
|
||||||
periodSeconds: {{ .Values.front.livenessProbe.periodSeconds | default 10 }}
|
periodSeconds: {{ .Values.front.livenessProbe.periodSeconds | default 20 }}
|
||||||
initialDelaySeconds: {{ .Values.front.livenessProbe.initialDelaySeconds | default 5 }}
|
initialDelaySeconds: {{ .Values.front.livenessProbe.initialDelaySeconds | default 15 }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: http
|
port: http
|
||||||
failureThreshold: {{ .Values.front.readinessProbe.failureThreshold | default 3 }}
|
failureThreshold: {{ .Values.front.readinessProbe.failureThreshold | default 3 }}
|
||||||
periodSeconds: {{ .Values.front.readinessProbe.periodSeconds | default 10 }}
|
periodSeconds: {{ .Values.front.readinessProbe.periodSeconds | default 5 }}
|
||||||
initialDelaySeconds: {{ .Values.front.readinessProbe.initialDelaySeconds | 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
|
||||||
|
|
|
@ -128,6 +128,7 @@ api:
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
readinessProbe: {}
|
readinessProbe: {}
|
||||||
|
startupProbe: {}
|
||||||
|
|
||||||
front:
|
front:
|
||||||
image:
|
image:
|
||||||
|
@ -161,6 +162,7 @@ front:
|
||||||
affinity: {}
|
affinity: {}
|
||||||
readinessProbe: {}
|
readinessProbe: {}
|
||||||
livenessProbe: {}
|
livenessProbe: {}
|
||||||
|
startupProbe: {}
|
||||||
|
|
||||||
celery:
|
celery:
|
||||||
beat:
|
beat:
|
||||||
|
|
Loading…
Reference in a new issue