File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,7 @@ kubectl patch deployment -n scheduler-plugins --type=json \
172172 --patch-file setup.k8s/scheduler-priority-patch.yaml scheduler-plugins-scheduler
173173
174174# Wait for scheduler-plugins pods to be ready
175- while [[ $( kubectl get pods -n scheduler-plugins -o ' jsonpath={..status.conditions[?(@.type=="Ready")].status}' | tr ' ' ' \n' | sort -u) != " True" ]]
176- do
177- echo -n " ." && sleep 1;
178- done
179- echo " "
175+ kubectl -n scheduler-plugins wait --timeout=300s --for=condition=Available deployments --all
180176
181177# Create mlbatch-system namespace
182178kubectl create namespace mlbatch-system
@@ -191,11 +187,7 @@ kubectl apply --server-side -k setup.k8s/kuberay
191187kubectl apply --server-side -k setup.k8s/kueue
192188
193189# Wait for Kueue to be ready
194- 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" ]]
195- do
196- echo -n " ." && sleep 1;
197- done
198- echo " "
190+ kubectl -n mlbatch-system wait --timeout=300s --for=condition=Available deployments kueue-controller-manager
199191
200192# Deploy AppWrapper
201193kubectl apply --server-side -k setup.k8s/appwrapper/coscheduling
You can’t perform that action at this time.
0 commit comments