Readiness probe (#942)

* Adding readiness endpoint for readinessProbe in k8s

* liveness and readiness probes added to deployment template

* Changing endpoint to /readyz, onelining checks

* Removing DNS check as that will be covered by storage.List() call
This commit is contained in:
Audrius Karabanovas
2018-11-23 01:14:23 +02:00
committed by Manu Gupta
parent 005b36d50b
commit 154c993c42
3 changed files with 25 additions and 0 deletions
+8
View File
@@ -21,6 +21,14 @@ spec:
- name: {{ template "fullname" . }}
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
livenessProbe:
httpGet:
path: /healthz
port: 3000
readinessProbe:
httpGet:
path: /readyz
port: 3000
env:
- name: ATHENS_STORAGE_TYPE
value: {{ .Values.storage.type | quote }}