Skip to content

Commit a16c6b8

Browse files
hiddecofykaa
authored andcommitted
chore(chart): start using Kubernetes' builtin gRPC probe (akuity#3041)
Signed-off-by: Hidde Beydals <[email protected]>
1 parent 0f2a6e9 commit a16c6b8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

charts/kargo/templates/api/deployment.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,30 @@ spec:
8787
protocol: TCP
8888
{{- if .Values.api.probes.enabled }}
8989
livenessProbe:
90+
{{- if .Values.api.tls.enabled }}
9091
exec:
9192
command:
9293
- /usr/local/bin/grpc_health_probe
9394
- -addr=:8080
94-
{{- if .Values.api.tls.enabled }}
9595
- -tls
9696
- -tls-no-verify
97-
{{- end }}
97+
{{- else }}
98+
grpc:
99+
port: 8080
100+
{{- end }}
98101
initialDelaySeconds: 10
99102
readinessProbe:
103+
{{- if .Values.api.tls.enabled }}
100104
exec:
101105
command:
102106
- /usr/local/bin/grpc_health_probe
103107
- -addr=:8080
104-
{{- if .Values.api.tls.enabled }}
105108
- -tls
106109
- -tls-no-verify
107-
{{- end }}
110+
{{- else }}
111+
grpc:
112+
port: 8080
113+
{{- end }}
108114
initialDelaySeconds: 5
109115
{{- end }}
110116
{{- 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 }}

0 commit comments

Comments
 (0)