mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #15143 from gmarek/fix-kubemark
Wait for all HollowNodes to become ready in start-kubemark.sh
This commit is contained in:
commit
107d0f6d94
@ -182,3 +182,11 @@ kubectl create -f ${KUBECONFIG_SECRET} --namespace="kubemark"
|
|||||||
kubectl create -f ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json --namespace="kubemark"
|
kubectl create -f ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json --namespace="kubemark"
|
||||||
|
|
||||||
rm ${KUBECONFIG_SECRET}
|
rm ${KUBECONFIG_SECRET}
|
||||||
|
|
||||||
|
echo "Waiting for all HollowNodes to become Running..."
|
||||||
|
echo "This can loop forever if something crashed."
|
||||||
|
until [[ "$(kubectl --kubeconfig=${KUBE_ROOT}/test/kubemark/kubeconfig.loc get node | grep Ready | wc -l)" == "${NUM_MINIONS}" ]]; do
|
||||||
|
echo -n .
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user