1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| kubeadm config images list k8s.gcr.io/kube-apiserver:v1.18.4 k8s.gcr.io/kube-controller-manager:v1.18.4 k8s.gcr.io/kube-scheduler:v1.18.4 k8s.gcr.io/kube-proxy:v1.18.4 k8s.gcr.io/pause:3.2 k8s.gcr.io/etcd:3.4.3-0 k8s.gcr.io/coredns:1.6.7
vi img_save.sh images=( kube-apiserver:v1.18.4 kube-controller-manager:v1.18.4 kube-scheduler:v1.18.4 kube-proxy:v1.18.4 pause:3.2 etcd:3.4.3-0 coredns:1.6.7 )
for imageName in ${images[@]} ; do docker pull registry.aliyuncs.com/google_containers/$imageName docker tag registry.aliyuncs.com/google_containers/$imageName k8s.gcr.io/$imageName docker rmi registry.aliyuncs.com/google_containers/$imageName docker save k8s.gcr.io/$imageName > $imageName.tar done
vi img_load.sh images=( kube-apiserver:v1.18.4 kube-controller-manager:v1.18.4 kube-scheduler:v1.18.4 kube-proxy:v1.18.4 pause:3.2 etcd:3.4.3-0 coredns:1.6.7 )
for imageName in ${images[@]} ; do docker load < $imageName.tar done
|