Skip to content

Commit

Permalink
chore(chart): start using Kubernetes' builtin gRPC probe (akuity#3041)
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
Signed-off-by: Diego Caspi <[email protected]>
  • Loading branch information
hiddeco authored and diegocaspi committed Dec 18, 2024
1 parent cfcf3cf commit 4561dcf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions charts/kargo/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 4561dcf

Please sign in to comment.