Skip to content

Commit 35c5606

Browse files
feat: add liveness/readiness probes in graph helm chart (#1888)
1 parent d975761 commit 35c5606

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

deploy/helm/chart/templates/deployment.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,35 @@ spec:
7979
- name: NATS_SERVER
8080
value: "{{ $.Values.natsAddr }}"
8181
{{- end }}
82+
ports:
83+
- name: health
84+
containerPort: {{ $.Values.healthPort | default 5000 }}
85+
livenessProbe:
86+
{{- if $serviceSpec.extraPodSpec.mainContainer.livenessProbe }}
87+
{{ $serviceSpec.extraPodSpec.mainContainer.livenessProbe | toYaml | nindent 10 }}
88+
{{- else }}
89+
initialDelaySeconds: 60
90+
periodSeconds: 60
91+
timeoutSeconds: 5
92+
failureThreshold: 10
93+
successThreshold: 1
94+
httpGet:
95+
path: /healthz
96+
port: health
97+
scheme: HTTP
98+
{{- end }}
99+
readinessProbe:
100+
{{- if $serviceSpec.extraPodSpec.mainContainer.readinessProbe }}
101+
{{ $serviceSpec.extraPodSpec.mainContainer.readinessProbe | toYaml | nindent 10 }}
102+
{{- else }}
103+
initialDelaySeconds: 60
104+
periodSeconds: 60
105+
timeoutSeconds: 5
106+
failureThreshold: 10
107+
successThreshold: 1
108+
httpGet:
109+
path: /readyz
110+
port: health
111+
scheme: HTTP
112+
{{- end }}
82113
{{- end }}

0 commit comments

Comments
 (0)