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 }}