@@ -10,17 +10,31 @@ echo "---------------------------------------------"
1010# Install calico
1111# see https://docs.tigera.io/calico/latest/getting-started/kubernetes/quickstart#install-calico
1212# ---------------------------------------------------------------------------
13- kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.30.2/manifests/tigera-operator.yaml
13+ kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.31.2/manifests/operator-crds.yaml
14+ kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.31.2/manifests/tigera-operator.yaml
1415# wait for tigera-operator
1516kubectl wait --namespace tigera-operator \
1617 --for=condition=ready pod \
1718 --selector=k8s-app=tigera-operator \
1819 --timeout=90s
1920
21+ # sleep 5
22+
23+ # # Wait for Tigera CRDs to be established
24+ # kubectl wait --for=condition=Established --timeout=60s crd/apiservers.operator.tigera.io
25+ # kubectl wait --for=condition=Established --timeout=60s crd/gatewayapis.operator.tigera.io
26+ # kubectl wait --for=condition=Established --timeout=60s crd/goldmanes.operator.tigera.io
27+ # kubectl wait --for=condition=Established --timeout=60s crd/imagesets.operator.tigera.io
28+ # kubectl wait --for=condition=Established --timeout=60s crd/installations.operator.tigera.io
29+ # kubectl wait --for=condition=Established --timeout=60s crd/managementclusterconnections.operator.tigera.io
30+ # kubectl wait --for=condition=Established --timeout=60s crd/tigerastatuses.operator.tigera.io
31+ # kubectl wait --for=condition=Established --timeout=60s crd/whiskers.operator.tigera.io
32+
33+
2034# install calico with consistent pod subnet
35+ # kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.31.2/manifests/custom-resources.yaml
2136kubectl apply -f " ${SCRIPT_DIR} /custom-resources.yaml"
2237
23-
2438# wait for calico pods
2539kubectl wait --namespace calico-system \
2640 --for=condition=ready pod \
0 commit comments