1.镜像
查看需要的镜像版本:
kubeadm config images list
查询出对应版本,替换如下,截止当前2022-03-31目前最新版1.23.5
对应镜像因google-containers没有,因此自己上传,欢迎使用:
images=(
kube-apiserver:v1.23.5
kube-controller-manager:v1.23.5
kube-scheduler:v1.23.5
kube-proxy:v1.23.5
pause:3.6
etcd:3.5.1-0
coredns:v1.8.6
)
for imageName in ${images[@]} ; do
docker pull registry.cn-hangzhou.aliyuncs.com/binlin/$imageName
docker tag registry.cn-hangzhou.aliyuncs.com/binlin/$imageName k8s.gcr.io/$imageName
docker rmi registry.cn-hangzhou.aliyuncs.com/binlin/$imageName
done
docker tag k8s.gcr.io/coredns:v1.8.6 k8s.gcr.io/coredns/coredns:v1.8.6