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

时间:2019-10-06 02:19:19

标签: kubernetes minikube

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

?  minikube v1.4.0 on Darwin 10.14.6
?  Tip: Use 'minikube start -p <name>' to create a new cluster, or 'minikube delete' to delete this one.
?  Using the running virtualbox "minikube" VM ...
⌛  Waiting for the host to be provisioned ...
?  Preparing Kubernetes v1.16.0 on Docker 18.09.9 ...
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
E1006 09:57:30.976341   22071 cache_images.go:79] CacheImage gcr.io/k8s-minikube/storage-provisioner:v1.8.1 -> /Users/chrisbao/.minikube/cache/images/gcr.io/k8s-minikube/storage-provisioner_v1.8.1 failed: fetching image: Get https://gcr.io/v2/: dial tcp [2404:6800:4008:c00::52]:443: i/o timeout

minikube status命令返回以下状态信息:

host: Running
kubelet:
apiserver: Stopped
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100

那么如何调试和修复它?可能的原因是什么?

2 个答案:

答案 0 :(得分:0)

尝试拉图像时出现连接超时。

“获取https://k8s.gcr.io/v2/:拨打tcp [2404:6800:4008:c04 :: 52]:443:输入/输出超时”

您可以确认可以从minikube VM中访问互联网吗?

minikube ssh ping google.com

您应该看到类似 enter image description here

答案 1 :(得分:0)

  

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失败:获取图像:获取here:拨打tcp [2404:6800:4008:c04 :: 52]:443:输入/输出超时

您似乎无法从GCR中提取k8s api服务器映像。您可以通过使用--image-repository--image-mirror-country标志来尝试使用可用的图像镜像之一。例如,如果您居住在中国,则可以使用以下命令启动minikube:

minikube start --image-mirror-country=cn