From 569aedb4e8831fb81c84f4087c142b739b9e6521 Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Thu, 3 Oct 2019 14:27:42 +0200
Subject: [PATCH] hotfix readinessProbe

---
 .../templates/deployment.yaml                     | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/onlyoffice-documentserver/templates/deployment.yaml b/onlyoffice-documentserver/templates/deployment.yaml
index 2ebb2d40..deb9b8f6 100644
--- a/onlyoffice-documentserver/templates/deployment.yaml
+++ b/onlyoffice-documentserver/templates/deployment.yaml
@@ -39,7 +39,7 @@ spec:
             failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
           {{- end }}
           {{- if .Values.readinessProbe.enabled }}
-          livenessProbe:
+          readinessProbe:
             failureThreshold: 3
             httpGet:
               path: /welcome
@@ -73,19 +73,6 @@ spec:
               value: "{{ .Values.postgresql.service.port }}"
             - name: POSTGRESQL_SERVER_DB_NAME
               value: "{{ .Values.postgresql.postgresqlDatabase }}"
-          {{- if .Values.readinessProbe.enabled }}
-          readinessProbe:
-            failureThreshold: 3
-            httpGet:
-              path: /
-              port: http
-              scheme: HTTP
-            initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
-            periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
-            timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
-            successThreshold: {{ .Values.readinessProbe.successThreshold }}
-            failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
-          {{- end }}
           ports:
             - name: http
               containerPort: {{ .Values.onlyoffice.containerPort }}
-- 
GitLab