Unverified Commit 35c56065 authored by julienmancuso's avatar julienmancuso Committed by GitHub
Browse files

feat: add liveness/readiness probes in graph helm chart (#1888)

parent d975761b
......@@ -79,4 +79,35 @@ spec:
- name: NATS_SERVER
value: "{{ $.Values.natsAddr }}"
{{- end }}
ports:
- name: health
containerPort: {{ $.Values.healthPort | default 5000 }}
livenessProbe:
{{- if $serviceSpec.extraPodSpec.mainContainer.livenessProbe }}
{{ $serviceSpec.extraPodSpec.mainContainer.livenessProbe | toYaml | nindent 10 }}
{{- else }}
initialDelaySeconds: 60
periodSeconds: 60
timeoutSeconds: 5
failureThreshold: 10
successThreshold: 1
httpGet:
path: /healthz
port: health
scheme: HTTP
{{- end }}
readinessProbe:
{{- if $serviceSpec.extraPodSpec.mainContainer.readinessProbe }}
{{ $serviceSpec.extraPodSpec.mainContainer.readinessProbe | toYaml | nindent 10 }}
{{- else }}
initialDelaySeconds: 60
periodSeconds: 60
timeoutSeconds: 5
failureThreshold: 10
successThreshold: 1
httpGet:
path: /readyz
port: health
scheme: HTTP
{{- end }}
{{- end }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment