Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

minikube 安装k8s集群,一直提示连接网址https://gcr.io/v2/失败,但是我配置了aliyun的镜像

如图
image.png

阿里云的连接地址: https://yq.aliyun.com/articles/221687?spm=a2c4e.11153940.0.0.12424ceck7ZCx5&p=7#comments

命令:

minikube start --vm-driver docker --image-mirror-country cn --iso-url=https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.7.3.iso --registry-mirror=https://9cpn8tt6.mirror.aliyuncs.com

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

因为 minikube 启动 k8s 集群需要通过 gcr 仓库拉取. 最新版的minikube可以使用参数--image-mirror-country cn 来实现对国内的支持. 详情看文档(https://github.com/AliyunCont...

--registry-mirror 参数只是对 hub.docker.com 的镜像加速


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...