这里是部署k8s 1.19.2
tag
#!/bin/bash
images=(
kube-apiserver:v1.19.2
kube-controller-manager:v1.19.2
kube-scheduler:v1.19.2
kube-proxy:v1.19.2
etcd:3.4.13-0
coredns:1.7.0
pause:3.2
)
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
done
手动save镜像
docker save -o kubeproxy.tar.gz k8s.gcr.io/kube-proxy:v1.18.2
scp kubeproxy.tar.gz security@192.168.10.103:/home/security
手动load镜像
docker load -i xxx.tar.gz
kubeadm init时候指定image-repository
--image-repository registry.aliyuncs.com/google_container