fix: wait for available PostgreSQL deployment
This commit is contained in:
1 parent
12e68564f6
commit
2b7716dd4e
3 files changed
+4
-2
No files matched your search
+2
-1
@@ -97,7 +97,8 @@ deploy:
|
||||
sed -E "s#image: reg.nyan404.ru/cwshed-clone/belki:[^[:space:]]+#image: $DOCKER_IMAGE_REPOSITORY:$CI_COMMIT_SHORT_SHA#g" deploy/k8s/production.yaml | kubectl apply -f -
|
||||
- >
|
||||
sed -E "s#image: reg.nyan404.ru/cwshed:[^[:space:]]+#image: $GATEWAY_IMAGE_REPOSITORY:$CI_COMMIT_SHORT_SHA#g" deploy/k8s/gateway.yaml | kubectl apply -f -
|
||||
- kubectl -n "$KUBE_NAMESPACE" wait --for=condition=Ready pod -l app.kubernetes.io/name=belki-postgres --timeout=180s
|
||||
# Pod labels include historical ReplicaSets; wait for the Deployment's usable database replica instead.
|
||||
- kubectl -n "$KUBE_NAMESPACE" wait --for=condition=Available deployment/belki-postgres --timeout=180s
|
||||
- kubectl -n "$KUBE_NAMESPACE" rollout status deployment/belki-web --timeout=180s
|
||||
- kubectl -n "$KUBE_NAMESPACE" rollout status deployment/belki-bot --timeout=180s
|
||||
- kubectl -n "$KUBE_NAMESPACE" rollout status deployment/cwshed --timeout=180s
|
||||
|
||||
Reference in new issue
Block a user