Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Reasno/e5333987a17955a8103ce020331fa37c to your computer and use it in GitHub Desktop.
Save Reasno/e5333987a17955a8103ce020331fa37c to your computer and use it in GitHub Desktop.
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
KUBE_VERSION=v1.10.0
KUBE_PAUSE_VERSION=3.0
ETCD_VERSION=3.2.13
DNS_VERSION=1.14.8
GCR_URL=gcr.io/google_containers
ALIYUN_URL=registry.cn-qingdao.aliyuncs.com/huiji
images=(kube-proxy-amd64:${KUBE_VERSION}
kube-scheduler-amd64:${KUBE_VERSION}
kube-controller-manager-amd64:${KUBE_VERSION}
kube-apiserver-amd64:${KUBE_VERSION}
pause-amd64:${KUBE_PAUSE_VERSION}
etcd-amd64:${ETCD_VERSION}
k8s-dns-sidecar-amd64:${DNS_VERSION}
k8s-dns-kube-dns-amd64:${DNS_VERSION}
k8s-dns-dnsmasq-nanny-amd64:${DNS_VERSION})
for imageName in ${images[@]} ; do
docker pull $ALIYUN_URL/$imageName
docker tag $ALIYUN_URL/$imageName $GCR_URL/$imageName
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment