Kubernetes minikube:无法在mac上启动,错误为E1006

Kubernetes minikube:无法在mac上启动,错误为E1006,kubernetes,minikube,Kubernetes,Minikube,我试图在我自己的mac上本地设置k8s,在安装所有依赖项后,我尝试运行minikube start,但收到以下错误消息: You're getting a connection timeout when trying to pull images. "Get https://k8s.gcr.io/v2/: dial tcp [2404:6800:4008:c04::52]:443: i/o timeout" Can you confirm that you're able to acces

我试图在我自己的mac上本地设置k8s,在安装所有依赖项后,我尝试运行
minikube start
,但收到以下错误消息:

You're getting a connection timeout when trying to pull images. 

"Get https://k8s.gcr.io/v2/: dial tcp [2404:6800:4008:c04::52]:443: i/o timeout"

Can you confirm that you're able to access the internet from within your minikube VM?

minikube ssh
ping google.com

you should see something like enter image description here

E1006 09:57:30.975647 22071 cache_images.go:79] CacheImage k8s.gcr.io/kube-apiserver:v1.16.0 -> /Users/chrisbao/.minikube/cache/images/k8s.gcr.io/kube-apiserver_v1.16.0 failed: fetching image: Get https://k8s.gcr.io/v2/: dial tcp [2404:6800:4008:c04::52]:443: i/o timeout

Looks like you aren't able to pull the k8s api server image from GCR. You can try use one of the available image mirrors by using the
--image-repository
or
--image-mirror-country
flags. E.g., if you are based in China, you can start minikube with:

minikube start --image-mirror-country=cn

尝试提取图像时,连接超时

“获取:拨号tcp[2404:6800:4008:c04::52]:443:i/o超时”

你能确认你能从minikube虚拟机访问互联网吗

minikube ssh
ping google.com

你应该看到类似的东西

E1006 09:57:30.975647 22071 cache_images.go:79]CacheImage k8s.gcr.io/kube-apiserver:v1.16.0->/Users/chrisbao/.minikube/cache/images/k8s.gcr.io/kube-apiserver_v1.16.0失败:获取图像:获取:拨号tcp[2404:6800:4008:c04::52]:443:i/o超时

看起来您无法从GCR中提取k8s api服务器映像。您可以使用
--image repository
--image mirror country
标志尝试使用一个可用的镜像。例如,如果您的总部位于中国,您可以从以下几点开始使用minikube:


你安装了kubectl吗?当然。已安装kubectl。
kubectl群集信息
输出了什么?
配置错误:*无法读取minikube的客户端证书/Users/chrisbao/.minikube/client.crt,因为打开了/Users/chrisbao/.minikube/client.crt:没有这样的文件或目录