【极简】windows下国内启动minikube

文章讲述了在启动minikube时遇到的问题,特别是由于取消了特定服务导致的镜像加载失败。作者尝试了设置不同的镜像源、手动下载minikubeISO文件并指定--iso-url来启动minikube,提供了解决启动问题的一种方法,特别是在中国地区遇到GCR.IO访问限制时。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

minikube start --help | grep image
–base-image=‘gcr.io/k8s-minikube/kicbase:v0.0.40@sha256:8cadf23777709e43eca447c47a45f5a4635615129267ce025193040ec92a1631’:
The base image to use for docker/podman drivers. Intended for local development.
–cache-images=true:
If true, cache docker images for the current bootstrapper and load them into the machine. Always false with --driver=none.
–image-mirror-country=‘’:
Country code of the image mirror to be used. Leave empty to use the global one. For Chinese mainland users, set it to cn.
–image-repository=‘’:
Alternative image repository to pull docker images from. This can be used when you have limited access to gcr.io. Set it to “auto” to let minikube decide one for you. For Chinese mainland users, you may use local gcr.io mirrors such as registry.cn-hangzhou.aliyuncs.com/google_containers
If set, download tarball of preloaded images if available to improve start time. Defaults to true.

大家先读一下这些选项的意思。

我自己加上了,没用(2023.8.4)。
估计是本来跟k8s部门有合作的,但是最近把这个服务取消了,我看很多22年的帖子都是写上这个就行了的。于是寻找local mirror还有哪些。
结果找了一通,加上了也没什么用

手动下载

我这里只是尝试了手动下载minikube的iso文件,还有其他的包,应该也可以手动下载然后指定包的名称。
手动打入https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.21.0.iso下载iso。

然后终端中,启动的命令加上--iso-url=iso的路径
比如:minikube start --driver=docker --iso-url='E:/firefox_download/minikube-v1.21.0.iso'
至于Linux上,估计也差不多,github上有release的包。https://github.com/kubernetes/minikube/releases,下载完了再加上个url的选项应该可以,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值