1、报错信息:
无法使用docker下载k8s镜像的解决办法,
参考https://www.jianshu.com/p/70efa1b853f5
目前国内的各大云计算厂商都提供了kubernetes的镜像服务,比如阿里云,我可以通过
docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.2.24
修改为:[root@master ~]# cat image.pull
#!/bin/bash
#img_list='
#k8s.gcr.io/kube-apiserver:v1.17.2
#k8s.gcr.io/kube-controller-manager:v1.17.2
#k8s.gcr.io/kube-scheduler:v1.17.2
#k8s.gcr.io/kube-proxy:v1.17.2
#k8s.gcr.io/pause:3.1
#k8s.gcr.io/etcd:3.4.3-0
#k8s.gcr.io/coredns:1.6.5
#'
img_list='
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.17.2
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.17.2
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.17.2
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.17.2
registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.1
registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.4.3-0
registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.6.5
'
for img in $img_list
do
docker pull $img
done
2、
https://www.it610.com/article/1295269712514588672.htm
[root@master ~]# kubeadm init --kubernetes-version=v1.17.2 --pod-network-cidr=172.16.0.0/16 --apiserver-advertise-address=192.168.91.150
初始化报错:
修改docker 标签:
在重新给下载的打个tag,
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.4.3-0 k8s.gcr.io/etcd:3.4.3-0
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.17.2 k8s.gcr.io/kube-apiserver:v1.17.2
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.17.2 k8s.gcr.io/kube-controller-manager:v1.17.2
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.17.2 k8s.gcr.io/kube-scheduler:v1.17.2
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.17.2 k8s.gcr.io/kube-proxy:v1.17.2
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.1 k8s.gcr.io/pause:3.1
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.6.5 k8s.gcr.io/
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.6.5 k8s.gcr.io/coredns:1.6.5
标签:aliyuncs,google,v1.17,daem,hangzhou,Error,docker,k8s,com
From: https://blog.51cto.com/u_3369545/6592457