Skip to content

Instantly share code, notes, and snippets.

@An0nymous0
Last active April 12, 2019 07:12
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 An0nymous0/eb83ab5b882a7bcc27a4c9fd43c0bf35 to your computer and use it in GitHub Desktop.
Save An0nymous0/eb83ab5b882a7bcc27a4c9fd43c0bf35 to your computer and use it in GitHub Desktop.
#!/bin/bash
images=(kube-apiserver:v1.13.1 kube-controller-manager:v1.13.1 kube-scheduler:v1.13.1 kube-proxy:v1.13.1 pause:3.1 etcd:3.2.24 coredns:1.2.6)
for imageName in ${images[@]} ; do
docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName k8s.gcr.io/$imageName
docker rmi registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment