【极简】windows下国内启动minikube

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的选项应该可以,

猜你喜欢

转载自blog.csdn.net/Yonggie/article/details/132016260