Add wait condition for metallb

This commit is contained in:
2025-03-23 13:31:01 +01:00
parent ef28377441
commit e2719a9c1d

View File

@@ -15,6 +15,10 @@ spec:
- /bin/bash - /bin/bash
- -c - -c
- | - |
# Wait for the webhook to be ready
echo "Waiting for MetalLB webhook to be ready..."
kubectl -n metallb-system wait --for=condition=ready --timeout=120s pods --all
# Get the external IP of the node using kubectl # Get the external IP of the node using kubectl
SERVER_IP=$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="ExternalIP")].address}') SERVER_IP=$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="ExternalIP")].address}')