Skip to content

Commit 5e275e9

Browse files
author
Evgeny Kiselev
committed
Add custom livenessProbe for Temporal services (Feature Request #653)
1 parent e8ae865 commit 5e275e9

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

charts/temporal/templates/server-deployment.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,13 @@ spec:
123123
protocol: TCP
124124
{{- if ne $service "worker" }}
125125
livenessProbe:
126-
initialDelaySeconds: 150
127-
tcpSocket:
128-
port: rpc
126+
{{- if $serviceValues.livenessProbe }}
127+
{{- toYaml $serviceValues.livenessProbe | nindent 12}}
128+
{{- else }}
129+
initialDelaySeconds: 150
130+
tcpSocket:
131+
port: rpc
132+
{{- end }}
129133
{{- end }}
130134
volumeMounts:
131135
- name: config

charts/temporal/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ server:
236236
deploymentAnnotations: {}
237237
podAnnotations: {}
238238
podLabels: {}
239+
livenessProbe: {}
239240
resources: {}
240241
nodeSelector: {}
241242
tolerations: []
@@ -289,6 +290,7 @@ server:
289290
deploymentAnnotations: {}
290291
podAnnotations: {}
291292
podLabels: {}
293+
livenessProbe: {}
292294
resources: {}
293295
nodeSelector: {}
294296
tolerations: []
@@ -314,6 +316,7 @@ server:
314316
deploymentAnnotations: {}
315317
podAnnotations: {}
316318
podLabels: {}
319+
livenessProbe: {}
317320
resources: {}
318321
nodeSelector: {}
319322
tolerations: []

0 commit comments

Comments
 (0)