From 12b0b185cfc131a097879b96f0d4c52e5b5274f0 Mon Sep 17 00:00:00 2001 From: John Mazzitelli Date: Mon, 11 Nov 2024 13:55:22 -0500 Subject: [PATCH] probes --- kiali-operator/templates/deployment.yaml | 18 ++++++++++++++++++ kiali-server/templates/deployment.yaml | 12 ++++++++++++ 2 files changed, 30 insertions(+) diff --git a/kiali-operator/templates/deployment.yaml b/kiali-operator/templates/deployment.yaml index 78f4d61..923055b 100644 --- a/kiali-operator/templates/deployment.yaml +++ b/kiali-operator/templates/deployment.yaml @@ -50,7 +50,25 @@ spec: - "--zap-log-level=info" - "--leader-election-id={{ include "kiali-operator.fullname" . }}" - "--watches-file=./$(WATCHES_FILE)" + - "--health-probe-bind-address=:6789" terminationMessagePolicy: FallbackToLogsOnError + readinessProbe: + httpGet: + path: /readyz + port: 6789 + periodSeconds: 30 + livenessProbe: + httpGet: + path: /healthz + port: 6789 + periodSeconds: 30 + startupProbe: + httpGet: + path: /healthz + port: 6789 + initialDelaySeconds: 30 + periodSeconds: 10 + failureThreshold: 6 securityContext: {{- if .Values.securityContext }} {{- toYaml .Values.securityContext | nindent 10 }} diff --git a/kiali-server/templates/deployment.yaml b/kiali-server/templates/deployment.yaml index 488837d..46f7c37 100644 --- a/kiali-server/templates/deployment.yaml +++ b/kiali-server/templates/deployment.yaml @@ -114,6 +114,18 @@ spec: {{- end }} initialDelaySeconds: 5 periodSeconds: 30 + startupProbe: + httpGet: + path: {{ include "kiali-server.server.web_root" . | trimSuffix "/" }}/healthz + port: api-port + {{- if (include "kiali-server.identity.cert_file" .) }} + scheme: HTTPS + {{- else }} + scheme: HTTP + {{- end }} + initialDelaySeconds: 30 + periodSeconds: 10 + failureThreshold: 6 env: - name: ACTIVE_NAMESPACE valueFrom: