fix(helm): pin busybox:1.36, add -T 10 timeout, use --spider, add activeDeadlineSeconds
This commit is contained in:
@@ -9,14 +9,15 @@ metadata:
|
|||||||
helm.sh/hook-delete-policy: before-hook-creation
|
helm.sh/hook-delete-policy: before-hook-creation
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
activeDeadlineSeconds: 60
|
||||||
containers:
|
containers:
|
||||||
- name: healthz
|
- name: healthz
|
||||||
image: busybox
|
image: busybox:1.36
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
RESPONSE=$(wget -qO- http://{{ include "openconcho.fullname" . }}:{{ .Values.service.port }}/healthz)
|
RESPONSE=$(wget -T 10 -qO- http://{{ include "openconcho.fullname" . }}:{{ .Values.service.port }}/healthz)
|
||||||
if [ "$RESPONSE" != "ok" ]; then
|
if [ "$RESPONSE" != "ok" ]; then
|
||||||
echo "FAIL: expected 'ok', got '$RESPONSE'"
|
echo "FAIL: expected 'ok', got '$RESPONSE'"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -9,14 +9,15 @@ metadata:
|
|||||||
helm.sh/hook-delete-policy: before-hook-creation
|
helm.sh/hook-delete-policy: before-hook-creation
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
activeDeadlineSeconds: 60
|
||||||
containers:
|
containers:
|
||||||
- name: spa-root
|
- name: spa-root
|
||||||
image: busybox
|
image: busybox:1.36
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
if ! wget -qO /dev/null http://{{ include "openconcho.fullname" . }}:{{ .Values.service.port }}/; then
|
if ! wget -T 10 -q --spider http://{{ include "openconcho.fullname" . }}:{{ .Values.service.port }}/; then
|
||||||
echo "FAIL: GET / did not return HTTP 200"
|
echo "FAIL: GET / did not return HTTP 200"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user