From 8d4795372caa693d2ec35a0ebe1161ed36007848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Thu, 1 Feb 2024 16:12:43 +0100 Subject: [PATCH] Use more reboust way to check for running emojivoto Pods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- tools/aks_install.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tools/aks_install.sh b/tools/aks_install.sh index 6e8a1d4a..e28e846d 100755 --- a/tools/aks_install.sh +++ b/tools/aks_install.sh @@ -212,15 +212,10 @@ helm install emojivoto ./kubernetes \ echo -e "[$okStatus] Done" # waiting for emojivoto to come up -echo -n "[*] Waiting for emojivoto to be ready..." -WEBSTATE="" -until [[ $WEBSTATE == "Running" ]] -do - WEBSTATE=$(kubectl -n emojivoto get pod web-0 -o jsonpath="{.status.phase}") - echo -n "." - sleep 3 -done -echo "" +echo "[*] Waiting for emojivoto to be ready..." +kubectl rollout status statefulset -n emojivoto emoji --timeout=120s +kubectl rollout status statefulset -n emojivoto web --timeout=120s +kubectl rollout status statefulset -n emojivoto voting --timeout=120s echo -e "[$okStatus] Done" # @@ -237,7 +232,7 @@ echo -e "[$okStatus] Done" echo -e "[$okStatus] All done and ready to roll!🚀" echo -e "\n\tInstall ./marblerun.crt in the Trusted-Root-CA store of your browser" -echo -e "\tVisit https://$EMOJIVOTO" +echo -e "\tVisit https://$EMOJIVOTO\n" if [ "$LINKERD" = true ] then