Skip to content

Commit 322762b

Browse files
committed
Use calico images from quay
In order to avoid the pull rate limit, use the mirrored images from quay. Signed-off-by: Alice Frosi <[email protected]>
1 parent 2135b7a commit 322762b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/create-cluster-kind.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ data:
5050
help: "https://kind.sigs.k8s.io/docs/user/local-registry/"
5151
EOF
5252

53-
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/calico.yaml
53+
# Mirror calico image from quay to avoid to hit the pull rate limit from Docker Hub
54+
CALICO_FILE=/tmp/calico.yaml
55+
curl -Lo $CALICO_FILE https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/calico.yaml
56+
sed -i 's|docker.io/calico|quay.io/calico|g' $CALICO_FILE
57+
kubectl apply -f $CALICO_FILE

0 commit comments

Comments
 (0)