Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reuse vbox: "minikube start" failed at "Waiting for pods: apiserver" (timeout finally) #4127

Closed
jonathan-dy-wang opened this issue Apr 22, 2019 · 5 comments
Labels
co/apiserver Issues relating to apiserver configuration (--extra-config) kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@jonathan-dy-wang
Copy link

Environment: macOS Mojave 10.14.4, VirtualBox 6.0.6

$ minikube start
😄 minikube v1.0.0 on darwin (amd64)
🤹 Downloading Kubernetes v1.14.0 images in the background ...
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🏃 Re-using the currently running virtualbox VM for "minikube" ...
⌛ Waiting for SSH access ...
📶 "minikube" IP address is 192.168.99.100
🐳 Configuring Docker as the container runtime ...
🐳 Version of container runtime is 18.06.2-ce
⌛ Waiting for image downloads to complete ...
✨ Preparing Kubernetes environment ...
🚜 Pulling images required by Kubernetes v1.14.0 ...
🔄 Relaunching Kubernetes v1.14.0 using kubeadm ...
⌛ Waiting for pods: apiserver
💣 Error restarting cluster: wait: waiting for component=kube-apiserver: timed out waiting for the condition

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new
❌ Problems detected in "kube-addon-manager":
error: no objects passed to apply
error: no objects passed to apply
error: no objects passed to apply

@jaruizes
Copy link

Same issue for me.

I'm behind a proxy but I'm setting proxy options in "minkube start" as documentation says:

minikube start --docker-env HTTP_PROXY=${http_proxy} --docker-env HTTPS_PROXY=${http_proxy} --docker-env NO_PROXY=localhost,127.0.0.1,192.168.99.0/24,192.168.39.0/24

@jaruizes
Copy link

Solved adding minikube ip to "no_proxy" environment variable, not in "docker-env". That means:

export NO_PROXY=localhost,127.0.0.1,192.168.99.0/24,192.168.39.0/24 minikube start

@tstromberg tstromberg added the co/apiserver Issues relating to apiserver configuration (--extra-config) label Apr 22, 2019
@tstromberg tstromberg changed the title "minikube start" failed at "Waiting for pods: apiserver" (timeout finally) reuse vbox: "minikube start" failed at "Waiting for pods: apiserver" (timeout finally) Apr 22, 2019
@tstromberg
Copy link
Contributor

@DY-Ong - If you run minikube delete and then 'minikube start', does this happen again?

If so, can you attach the output of minikube logs? Thanks!

@jaruizes - I've opened #4130 to handle this case. Thanks for mentioning it!

@tstromberg tstromberg added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Apr 22, 2019
@jonathan-dy-wang
Copy link
Author

Thank you all so much.

Yesterday I re-installed my "Docker for Mac" because of some other problems. Today I reissued the "minikube start" command to see what will happen before I do some rescue actions as suggested. Magically it works !

I did nothing but only re-installed my Docker.
The messages shown in terminal screen were:

$ minikube start
😄 minikube v1.0.0 on darwin (amd64)
🤹 Downloading Kubernetes v1.14.0 images in the background ...
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🔄 Restarting existing virtualbox VM for "minikube" ...
⌛ Waiting for SSH access ...
📶 "minikube" IP address is 192.168.99.100
🐳 Configuring Docker as the container runtime ...
🐳 Version of container runtime is 18.06.2-ce
⌛ Waiting for image downloads to complete ...
✨ Preparing Kubernetes environment ...
🚜 Pulling images required by Kubernetes v1.14.0 ...
🔄 Relaunching Kubernetes v1.14.0 using kubeadm ...
⌛ Waiting for pods: apiserver proxy etcd scheduler controller dns
📯 Updating kube-proxy configuration ...
🤔 Verifying component health ......
💗 kubectl is now configured to use "minikube"
🏄 Done! Thank you for using minikube!
================================= (end of message) ======

@jingyahu
Copy link

Thanks a lot. I had the same issue in MacOS.
Update docker to the latest version do help to solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/apiserver Issues relating to apiserver configuration (--extra-config) kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

4 participants