Commit 94c7932d authored by Oleksandr Kosse (EPAM)'s avatar Oleksandr Kosse (EPAM)
Browse files

Merge branch 'Fix-healthcheck' into 'master'

Fix healthcheck

See merge request !213
parents beac0ba1 47c4298a
Pipeline #35138 passed with stages
in 21 seconds
......@@ -52,10 +52,6 @@ osdu-gcp-deploy:
--set image.repository=$OSDU_GCP_APPLICATION_IMAGE_REPOSITORY
--set image.tag=$OSDU_GCP_APPLICATION_IMAGE_TAG
--set secret.gcpSA=$OSDU_GCP_DATA_PROJECT_CREDENTIALS
- kubectl rollout status deployment.v1.apps/`kubectl get deployments -n $OSDU_GCP_APPLICATION_NAME -o jsonpath='{..metadata.name}'` -n $OSDU_GCP_APPLICATION_NAME --timeout=900s
- pod=$(kubectl get pod -n $OSDU_GCP_APPLICATION_NAME -o jsonpath='{..metadata.name}')
- status=$(kubectl wait -n $OSDU_GCP_APPLICATION_NAME --for=condition=Ready pod/$pod --timeout=300s)
- if [[ "$status" != *"met"* ]]; then echo "POD didn't start correctly" ; exit 1 ; fi
- status_code=$(curl -X GET --write-out '%{http_code}' --silent --output /dev/null $OSDU_GCP_APPLICATION_HEALTH_URL)
- if [[ "$status_code" -ne 200 ]] ; then echo exit 1 ; else echo health check OK! ; fi
only:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment