From 00a3cc1f5df5e75541aad2233d39ad34f43521da Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Mon, 22 Jan 2024 14:06:49 +0000 Subject: [PATCH] adds readiness and liveness probes to the worker process --- .../templates/worker-deployment.yaml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/charts/openproject/templates/worker-deployment.yaml b/charts/openproject/templates/worker-deployment.yaml index b5971228..1c9b4a43 100644 --- a/charts/openproject/templates/worker-deployment.yaml +++ b/charts/openproject/templates/worker-deployment.yaml @@ -41,7 +41,7 @@ spec: {{- include "openproject.podSecurityContext" . | indent 6 }} serviceAccountName: {{ include "common.names.fullname" . }} volumes: - {{- include "openproject.tmpVolumeSpec" . | indent 8 }} + {{- include "openproject.tmpVolumeSpec" . | indent 8 }} {{- if .Values.egress.tls.rootCA.fileName }} - name: ca-pemstore configMap: @@ -84,5 +84,27 @@ spec: subPath: {{ .Values.egress.tls.rootCA.fileName }} readOnly: false {{- end }} + {{- if .Values.probes.liveness.enabled }} + livenessProbe: + exec: + command: + - bin/check-worker-liveness + initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }} + timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }} + periodSeconds: {{ .Values.probes.liveness.periodSeconds }} + failureThreshold: {{ .Values.probes.liveness.failureThreshold }} + successThreshold: {{ .Values.probes.liveness.successThreshold }} + {{- end }} + {{- if .Values.probes.readiness.enabled }} + readinessProbe: + exec: + command: + - bin/check-worker-readiness + initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }} + timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }} + periodSeconds: {{ .Values.probes.readiness.periodSeconds }} + failureThreshold: {{ .Values.probes.readiness.failureThreshold }} + successThreshold: {{ .Values.probes.readiness.successThreshold }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }}