From 5ac9d188b7464acf03a6974fe6c8bc1efeb89288 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 24 Feb 2022 18:04:05 +0000 Subject: [PATCH] fix liveness protocol --- charts/databunker/templates/deployment.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/charts/databunker/templates/deployment.yaml b/charts/databunker/templates/deployment.yaml index 4b6cc59..c185f91 100644 --- a/charts/databunker/templates/deployment.yaml +++ b/charts/databunker/templates/deployment.yaml @@ -183,7 +183,11 @@ spec: livenessProbe: httpGet: path: {{ .Values.livenessProbe.path }} + {{- if (or .Values.certificates.customCAs .Values.certificates.customCertificate.certificateSecret) }} scheme: HTTPS + {{- else }} + scheme: HTTP + {{- end }} port: https initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} @@ -197,7 +201,11 @@ spec: readinessProbe: httpGet: path: {{ .Values.readinessProbe.path }} + {{- if (or .Values.certificates.customCAs .Values.certificates.customCertificate.certificateSecret) }} scheme: HTTPS + {{- else }} + scheme: HTTP + {{- end }} port: https initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} @@ -211,7 +219,11 @@ spec: startupProbe: httpGet: path: {{ .Values.startupProbe.path }} + {{- if (or .Values.certificates.customCAs .Values.certificates.customCertificate.certificateSecret) }} scheme: HTTPS + {{- else }} + scheme: HTTP + {{- end }} port: https httpHeaders: - name: Host