Minikube引导失败

时间:2019-01-18 18:00:05

标签: kubernetes minikube

当我在Mac(Mojave)的Mac上运行minikube --start时,尝试运行kubeadm init时会失败。

这是我运行的完整命令:

minikube start --logtostderr --stderrthreshold 0 -v 9 
               --cpus 2 --memory 4096 --disk-size=50g 
               --vm-driver=hyperkit

这是我得到的错误:

I0118 09:48:09.580726    4563 utils.go:224] ! error execution phase preflight: [preflight] Some fatal errors occurred:
I0118 09:48:09.580831    4563 utils.go:224] !   [ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-apiserver:v1.13.2: output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:47850->192.168.64.1:53: i/o timeout
I0118 09:48:09.580857    4563 utils.go:224] ! , error: exit status 1
I0118 09:48:09.580938    4563 utils.go:224] !   [ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-controller-manager:v1.13.2: output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:36115->192.168.64.1:53: i/o timeout
I0118 09:48:09.580967    4563 utils.go:224] ! , error: exit status 1
I0118 09:48:09.581030    4563 utils.go:224] !   [ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-scheduler:v1.13.2: output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:52487->192.168.64.1:53: i/o timeout
I0118 09:48:09.581048    4563 utils.go:224] ! , error: exit status 1
I0118 09:48:09.581110    4563 utils.go:224] !   [ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-proxy:v1.13.2: output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:33294->192.168.64.1:53: i/o timeout
I0118 09:48:09.581128    4563 utils.go:224] ! , error: exit status 1
I0118 09:48:09.581175    4563 utils.go:224] !   [ERROR ImagePull]: failed to pull image k8s.gcr.io/pause:3.1: output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:44064->192.168.64.1:53: i/o timeout
I0118 09:48:09.581191    4563 utils.go:224] ! , error: exit status 1
I0118 09:48:09.581236    4563 utils.go:224] !   [ERROR ImagePull]: failed to pull image k8s.gcr.io/etcd:3.2.24: output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:57861->192.168.64.1:53: i/o timeout
I0118 09:48:09.581258    4563 utils.go:224] ! , error: exit status 1
I0118 09:48:09.581546    4563 utils.go:224] !   [ERROR ImagePull]: failed to pull image k8s.gcr.io/coredns:1.2.6: output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:37549->192.168.64.1:53: i/o timeout

运行minikube logs时,我看到以下消息:

server.go:261] failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory

如果我运行minikube ssh并列出/etc/kubernetes的内容,这是我看到的:

> cd /etc/kubernetes   
> ls
addons  manifests

对于minikube版本0.32.0和0.33.0,我会遇到相同的错误。

0 个答案:

没有答案