其他分享
首页 > 其他分享> > kubeadm 部署k8s 镜像翻墙解决办法

kubeadm 部署k8s 镜像翻墙解决办法

作者:互联网

这里是部署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

 

标签:v1.19,aliyuncs,k8s,翻墙,imageName,docker,kube,kubeadm
来源: https://blog.csdn.net/yujia_666/article/details/111567791