From 2a04062b3d3e56f73cde451cacb731e59e6cec8e Mon Sep 17 00:00:00 2001 From: Tin Lam Date: Thu, 7 Jan 2021 13:48:02 -0600 Subject: [PATCH] chore(registry): uses calico's quay.io repo This patch set changes the default calico's registry from dockerhub to quay.io to mitigate issues where frequent run of the script hits against the dockerhub's rate limit. Signed-off-by: Tin Lam Change-Id: Ic3e047fb89c14a5fffc59333c4f705b4be21dcaa --- tools/gate/deploy-k8s.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/gate/deploy-k8s.sh b/tools/gate/deploy-k8s.sh index b4d71959..e56df34e 100755 --- a/tools/gate/deploy-k8s.sh +++ b/tools/gate/deploy-k8s.sh @@ -122,6 +122,10 @@ sudo -E minikube start \ minikube addons list curl https://docs.projectcalico.org/"${CALICO_VERSION}"/manifests/calico.yaml -o /tmp/calico.yaml +# NOTE: Changes the default repository to use quay.io. Running this script multiple times can result +# in image pull error due to dockerhub's rate limiting policy. To avoid potential conflict, +# use calico's quay.io repository to mitigate this issue. +sed -i -e 's#docker.io/calico/#quay.io/calico/#g' /tmp/calico.yaml kubectl apply -f /tmp/calico.yaml # Note: Patch calico daemonset to enable Prometheus metrics and annotations