Skip to content

Commit cff8399

Browse files
committed
chore(workflow): add waiting metallb pods
1 parent 4f82711 commit cff8399

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_scripts/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ function install_metallb() {
202202
--namespace metallb \
203203
--create-namespace
204204

205-
sleep 30s
205+
echo -e "\\033[32m--->Waiting metallb pods ready...\\033[0m"
206+
kubectl wait pods -n metallb --all --for condition=Ready --timeout=600s
207+
206208
if [[ -z "${METALLB_CONFIG_FILE}" ]] ; then
207209
echo -e "\\033[32m---> Metallb using the default configuration.\\033[0m"
208210
kubectl apply -n metallb -f - <<EOF

0 commit comments

Comments
 (0)