Make health checks compatible with Istio mTLS

This commit is contained in:
Stefan Prodan
2018-09-07 13:38:18 +03:00
parent f1775ba090
commit bfd35f6cc0
2 changed files with 22 additions and 26 deletions

View File

@@ -54,20 +54,18 @@ spec:
- name: http
containerPort: {{ .Values.containerPort }}
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: 9898
initialDelaySeconds: 1
periodSeconds: 2
failureThreshold: 1
livenessProbe:
httpGet:
path: /healthz
port: 9898
initialDelaySeconds: 1
periodSeconds: 10
failureThreshold: 2
exec:
command:
- /bin/sh
- -c
- wget --quiet --tries=1 --spider http://localhost:{{ .Values.containerPort }}/healthz || exit 1
readinessProbe:
exec:
command:
- /bin/sh
- -c
- wget --quiet --tries=1 --spider http://localhost:{{ .Values.containerPort }}/readyz || exit 1
volumeMounts:
- name: data
mountPath: /data

View File

@@ -55,20 +55,18 @@ spec:
- name: http
containerPort: {{ .Values.containerPort }}
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: 9898
initialDelaySeconds: 1
periodSeconds: 2
failureThreshold: 1
livenessProbe:
httpGet:
path: /healthz
port: 9898
initialDelaySeconds: 1
periodSeconds: 10
failureThreshold: 2
exec:
command:
- /bin/sh
- -c
- wget --quiet --tries=1 --spider http://localhost:{{ .Values.containerPort }}/healthz || exit 1
readinessProbe:
exec:
command:
- /bin/sh
- -c
- wget --quiet --tries=1 --spider http://localhost:{{ .Values.containerPort }}/readyz || exit 1
volumeMounts:
- name: data
mountPath: /data