Commit 53f63835 authored by Oleksandr Kosse (EPAM)'s avatar Oleksandr Kosse (EPAM)
Browse files

Merge branch 'Fix-for-namespace' into 'master'

Fix for namespace and healthcheck

See merge request !210
parents 662ccc92 6a209215
Pipeline #35035 passed with stages
in 39 seconds
......@@ -46,14 +46,14 @@ osdu-gcp-deploy:
--set image.tag=$CI_COMMIT_SHORT_SHA
- kubectl rollout status deployment.v1.apps/$OSDU_GCP_PROJECT -n $OSDU_GCP_APPLICATION_NAME --timeout=900s
- pod=$(kubectl get pod -n $OSDU_GCP_APPLICATION_NAME | grep $OSDU_GCP_PROJECT | tail -1 | awk '{print $1}')
- kubectl rollout status deployment.v1.apps/`kubectl get deployments -n $OSDU_GCP_APPLICATION_NAME -o jsonpath='{}'` -n $OSDU_GCP_APPLICATION_NAME --timeout=900s
- pod=$(kubectl get pod -n $OSDU_GCP_APPLICATION_NAME -o jsonpath='{}')
- 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)
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