mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-22 16:44:24 +00:00
Add wait condition for metallb
This commit is contained in:
@@ -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}')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user