kubeadm 部署k8s 镜像翻墙解决办法
2020-10-14 本文已影响0人
wwq2020
这里是部署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
kubeadm init时候指定image-repository
--image-repository registry.aliyuncs.com/google_container```