diff --git a/scripts/kubernetes/cluster-status.sh b/scripts/kubernetes/cluster-status.sh index 846b3f2..634c6de 100644 --- a/scripts/kubernetes/cluster-status.sh +++ b/scripts/kubernetes/cluster-status.sh @@ -15,7 +15,7 @@ k8s_wait_fornodesandpods() { sleep 5 done while true; do - NOT_READY_NODES=$(kubectl get nodes --no-headers 2>/dev/null | grep -c " Ready") + NOT_READY_NODES=$(kubectl get nodes --no-headers 2>/dev/null | grep -v " Ready" | wc -l) if [ "$NOT_READY_NODES" -eq 0 ]; then echo "All nodes are ready." break