-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
kubectl: Unable to connect to the server: dial tcp i/o timeout #1234
Comments
@norbert-yoimo I think I'm seeing a similar issue to you. Is the kube API server flapping up and down? I mean, are you able to run |
I just tried a few times, but I could never get it to connect. |
Can you post the output of |
Hi, I have the same issue minikube.log.txt My OS is Void Linux, with VirtualBox 5.1.14. Oh I checked that from the vm (via
And both from the vm and from the just started alpine docker.
|
The failed systemd-networkd-wait-online.service is a red herring for this issue. See #1277. |
Tried again with 0.18.0, still the same problem, attaching the requested files: |
Same problem |
same problem on ubuntu 17.04 |
@RaananHadar I found the solution for ubuntu 17.04 the problem is in the docker version in the Ubuntu repo, you need to uninstall docker docker-engine and install docker-ce. $sudo apt-get remove docker docker-engine follow the steps to install docker-ce but you need to change the sources from zesty to xenial because the repo for zesty does not exist yet (tricky bit). $ sudo apt-get update $ sudo apt-get install $ sudo apt-get install $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo apt-key fingerprint 0EBFCD88 IMPORTANT!!!! $ sudo apt-get update $ sudo apt-get install docker-ce at this point run minikube and check the status Now you should be able to run kubectl cluster-info |
@david1983 I tried the instructions above but in the end got the same network error, like @RaananHadar I was trying this on Ubuntu 17.04. |
same problem here :-( |
For others that run into this problem. #1224 (comment) solved it for me. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
In my case use-context was not set: Use this if you have kubernetes running with Docker for Desktop:
Use this if you have kubernetes running with minikube:
If you run into problems with Minikube, the best is to remove and start it over again:
|
In my case, my minikube wasnt active. had to start it by "minikube start" |
Hey @editaxz did restarting the cluster via
fix it for you? I'd suggest upgrading to the latest version of minikube, v1.13.1, as well. |
Closing as this is due to speaking to a stopped cluster, but opened #9410 to make this less confusing for users. |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug report
Minikube version (use
minikube version
): minikube version: v0.17.1Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName
): virtualboxcat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): minikube-v1.0.7.isoWhat happened:
$ ./minikube-linux-amd64 start
$ kubectl get pods
What you expected to happen:
Get an empty list of pods
How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
Output of
minikube ssh systemctl status localkube
:If I SSH in, I can see that there is 1 failed systemd unit, no idea if it matters or not:
The text was updated successfully, but these errors were encountered: