diff --git a/helpers/deploy_postgis.sh b/helpers/deploy_postgis.sh index d97a047840c7e88a39702430b5d076da08ee1dca..8c645e8a524b1b34bdf2f5861f0e5bcc80b635d9 100755 --- a/helpers/deploy_postgis.sh +++ b/helpers/deploy_postgis.sh @@ -38,6 +38,10 @@ helm upgrade -v 2 --install -f ${values_base}/values-postgis.yaml $EXTRA_ARGS -- # do a little waiting for the postgres pod to be ready so future stages # don't fail to communicate with it echo "Start waiting for postgres: $(date +%Y%m%dT%H%M%S)" +kubectl -n $ns get pods +sleep 5 +echo "Done sleeping. Making sure the pod(s) are ready. ${release_name}" +kubectl -n $ns get pods kubectl wait -n $ns --selector=app.kubernetes.io/instance=${release_name} --timeout 120s --for=condition=Ready pod status=$? echo "Done waiting for postgis: $(date +%Y%m%dT%H%M%S) : $status"