Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
CI-CD Pipelines
Commits
6a209215
Commit
6a209215
authored
Apr 08, 2021
by
Oleksii Tsyganov (EPAM)
Browse files
Fix for namespace and healthcheck
parent
58d42cd8
Pipeline
#35032
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cloud-providers/osdu-gcp-stateful-k8s.yml
View file @
6a209215
...
...
@@ -46,14 +46,14 @@ osdu-gcp-deploy:
helm upgrade $OSDU_GCP_HELM_CHART $OSDU_GCP_HELM_DEPLOYMENT_DIR
--install
--create-namespace
--namespace=$OSDU_GCP_APPLICATION_NAME
--namespace=$OSDU_GCP_APPLICATION_NAME
SPACE
--wait
$OSDU_GCP_ENV_HELM_EXTRA_VARS
--set image.repository=gcr.io/$OSDU_GCP_PROJECT/$OSDU_GCP_APPLICATION_NAME/$OSDU_GCP_APPLICATION_NAME-$OSDU_GCP_VENDOR
--set image.tag=$CI_COMMIT_SHORT_SHA
--set secret.gcpSA=$OSDU_GCP_DATA_PROJECT_CREDENTIALS
-
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='{..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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment