Skip to content
Snippets Groups Projects
Commit 1adee6b8 authored by Francisco Borges Aurindo Barros's avatar Francisco Borges Aurindo Barros
Browse files

Merge branch 'remove-probe-assumptions' into 'v9.4-2'

Make liveness probe only faily 500/503 error codes

See merge request !162
parents 660de54b 862b22eb
No related branches found
No related tags found
1 merge request!162Make liveness probe only faily 500/503 error codes
Pipeline #4832638 failed
......@@ -33,7 +33,7 @@
# 302: redirection (NOTE: not sure if there's a legitimate case to expect this)
# 403: fully private websites give this response
# 503: high load
if [[ "${HTTP_CODE_BASE}" -ne "200" && "${HTTP_CODE_BASE}" -ne "302" && "${HTTP_CODE_BASE}" -ne "403" && "${HTTP_CODE_BASE}" -ne "503" ]]; then
if [[ "${HTTP_CODE_BASE}" -eq "500" || "${HTTP_CODE_BASE}" -eq "503" ]]; then
echo "Probe failed" >> $FILE
echo "Probe failed. Endpoint / responds with code: $HTTP_CODE_BASE"
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment