Skip to content

simplify wait commands #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions setup.KubeConEU25/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,7 @@ kubectl patch deployment -n scheduler-plugins --type=json \
--patch-file setup.k8s/scheduler-priority-patch.yaml scheduler-plugins-scheduler

# Wait for scheduler-plugins pods to be ready
while [[ $(kubectl get pods -n scheduler-plugins -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}' | tr ' ' '\n' | sort -u) != "True" ]]
do
echo -n "." && sleep 1;
done
echo ""
kubectl -n scheduler-plugins wait --timeout=300s --for=condition=Available deployments --all

# Create mlbatch-system namespace
kubectl create namespace mlbatch-system
Expand All @@ -191,11 +187,7 @@ kubectl apply --server-side -k setup.k8s/kuberay
kubectl apply --server-side -k setup.k8s/kueue

# Wait for Kueue to be ready
while [[ $(kubectl get pods -l app.kubernetes.io/name=kueue -n mlbatch-system -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}' | tr ' ' '\n' | sort -u) != "True" ]]
do
echo -n "." && sleep 1;
done
echo ""
kubectl -n mlbatch-system wait --timeout=300s --for=condition=Available deployments kueue-controller-manager

# Deploy AppWrapper
kubectl apply --server-side -k setup.k8s/appwrapper/coscheduling
Expand Down