From 26a337786537ab0fe9a96cf4bc0e44117bbb3f5a Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 3 Dec 2024 20:27:31 +0100 Subject: [PATCH] chore(chart): start using builtin gRPC probe Signed-off-by: Hidde Beydals --- charts/kargo/templates/api/deployment.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/charts/kargo/templates/api/deployment.yaml b/charts/kargo/templates/api/deployment.yaml index 60735249e..b0c744d65 100644 --- a/charts/kargo/templates/api/deployment.yaml +++ b/charts/kargo/templates/api/deployment.yaml @@ -87,24 +87,30 @@ spec: protocol: TCP {{- if .Values.api.probes.enabled }} livenessProbe: + {{- if .Values.api.tls.enabled }} exec: command: - /usr/local/bin/grpc_health_probe - -addr=:8080 -{{- if .Values.api.tls.enabled }} - -tls - -tls-no-verify -{{- end }} + {{- else }} + grpc: + port: 8080 + {{- end }} initialDelaySeconds: 10 readinessProbe: + {{- if .Values.api.tls.enabled }} exec: command: - /usr/local/bin/grpc_health_probe - -addr=:8080 -{{- if .Values.api.tls.enabled }} - -tls - -tls-no-verify -{{- end }} + {{- else }} + grpc: + port: 8080 + {{- end }} initialDelaySeconds: 5 {{- end }} {{- if or .Values.kubeconfigSecrets.kargo (and .Values.api.oidc.enabled .Values.api.oidc.dex.enabled) .Values.api.tls.enabled .Values.api.cabundle.configMapName .Values.api.cabundle.secretName }}