From 7afd25d9bdaa66af4c46ae20ee0c0a60f20c9e5d Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Tue, 2 Nov 2021 10:42:53 +0100 Subject: [PATCH] Re-add readinessProbe --- templates/onlyoffice-deployment.yaml | 13 +++++++++++++ values.yaml | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/templates/onlyoffice-deployment.yaml b/templates/onlyoffice-deployment.yaml index 3c59d505..9bf7c3c5 100644 --- a/templates/onlyoffice-deployment.yaml +++ b/templates/onlyoffice-deployment.yaml @@ -43,6 +43,19 @@ spec: successThreshold: {{ .Values.onlyoffice.livenessProbe.successThreshold }} failureThreshold: {{ .Values.onlyoffice.livenessProbe.failureThreshold }} {{- end }} + {{- if .Values.onlyoffice.readinessProbe.enabled }} + readinessProbe: + exec: + command: + - "/bin/bash" + - "-c" + - "output=$(curl -s http://localhost:{{ .Values.onlyoffice.containerPort }}/healthcheck); if [ $? -ne 0 ]; then exit 1; fi; if [ \"$output\" == \"true\" ]; then exit 0; else exit 2; fi" + initialDelaySeconds: {{ .Values.onlyoffice.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.onlyoffice.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.onlyoffice.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.onlyoffice.readinessProbe.successThreshold }} + failureThreshold: {{ .Values.onlyoffice.readinessProbe.failureThreshold }} + {{- end }} {{- if .Values.onlyoffice.startupProbe.enabled }} startupProbe: exec: diff --git a/values.yaml b/values.yaml index 22a64a74..80477b45 100644 --- a/values.yaml +++ b/values.yaml @@ -140,6 +140,14 @@ onlyoffice: successThreshold: 1 failureThreshold: 2 + readinessProbe: + enabled: true + initialDelaySeconds: 0 + timeoutSeconds: 2 + periodSeconds: 30 + successThreshold: 1 + failureThreshold: 2 + startupProbe: enabled: true timeoutSeconds: 2 -- GitLab