diff options
author | 2025-01-29 11:43:27 +0530 | |
---|---|---|
committer | 2025-01-29 11:46:54 +0000 | |
commit | 92c86bb2b390a9d74f84d53b3edeccd239f3f0f5 (patch) | |
tree | 25f54a34fcc7098a83179acc75c3fdf5e3869662 /catalog-fe/sdc-frontend/artifacts/scripts/ready-probe.sh | |
parent | bbcddaafb6667c51af97a0d19d43b91f01b4025c (diff) |
Chef removal changes from catalog-fe
- Removed chef from catalog-fe module with kubernetes resources.
Issue-ID: SDC-4699
Change-Id: If599ea2136bb8dd98a816a9961f25ef0a4c39e25
Signed-off-by: Anamika Khantwal <anamika.khantwal@accenture.com>
Diffstat (limited to 'catalog-fe/sdc-frontend/artifacts/scripts/ready-probe.sh')
-rw-r--r-- | catalog-fe/sdc-frontend/artifacts/scripts/ready-probe.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/catalog-fe/sdc-frontend/artifacts/scripts/ready-probe.sh b/catalog-fe/sdc-frontend/artifacts/scripts/ready-probe.sh new file mode 100644 index 0000000000..65434716a1 --- /dev/null +++ b/catalog-fe/sdc-frontend/artifacts/scripts/ready-probe.sh @@ -0,0 +1,8 @@ +#!/bin/sh +health_check_http_code=$(curl -k --max-time 5 -o /dev/null -w '%{http_code}' -X GET --header "Accept: application/json" "http://127.0.0.1:8181//sdc1/rest/healthCheck") +if [ "$health_check_http_code" -eq 200 ]; then + exit 0 +else + echo "Health check http status: $health_check_http_code" + exit 1 +fi
\ No newline at end of file |