Use /ping endpoint for readiness checks

This commit is contained in:
TheSpad
2023-02-24 11:27:13 +00:00
parent d179d824e5
commit 1cf3f5b432
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [[ $(curl -sL "http://localhost:9696/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
exit 0
else
exit 1
fi