Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/create_local_k8s_cluster.bash
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,9 @@ kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.30.2

kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.30.2/manifests/custom-resources.yaml

while ! kubectl get pods -A -l k8s-app=calico-node 2>/dev/null | grep -q "Running"; do echo "Waiting for Calico pods to start..."; sleep 1; done
while ! kubectl get pods -A -l k8s-app=calico-node 2>/dev/null | grep --quiet "Running"; do echo "Waiting for Calico pods to start..."; sleep 1; done

while ! kubectl api-resources --api-group=projectcalico.org | grep --ignore-case networkpolicy >/dev/null 2>&1; do
echo "Waiting for Calico API resources to be available (e.g. NetworkPolicy)..."
sleep 1
done
Loading