minikube: Unable to connect to the server: dial tcp : i/o timeout
Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug
Minikube version (use minikube version): Tried with both v0.17.1 and v0.16.0
Environment:
- OS (e.g. from /etc/os-release): Mac OS Sierra 10.12.3
- VM Driver (e.g.
cat ~/.minikube/machines/minikube/config.json | grep DriverName): “DriverName”: “virtualbox” - ISO version (e.g.
cat ~/.minikube/machines/minikube/config.json | grep -i ISOorminikube ssh cat /etc/VERSION): Boot2DockerURL": "file:///Users/srinkri2/.minikube/cache/iso/minikube-v1.0.6.iso - Install tools: None
- Others:
What happened:
$ VBoxManage --version 5.1.14r112924 $ minikube status minikubeVM: Running localkube: Running
$ kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080 Unable to connect to the server: dial tcp 192.168.99.102:8443: i/o timeout
What you expected to happen: Deployment should have proceeded and created.
How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 32 (2 by maintainers)
Was having this problem on fresh installs of both Ubuntu Zesty and Fedora 26 with Virtualbox. My solution was to run
ifconfig vboxnet0 upAlthough
ip addr showwas showing the correct ip being set the minikube was not bringing up the interface.FWIW, I have a similar problem on macOS, and found that the VPN will make the API server
192.168.99.100unreachable.I also had to restart minikube via
minikube stop && minikube startfor kubectl to connect.@mehuman Worked for me as well with Ubuntu
Before
sudo ifconfig vboxnet0 upand after
Check if you have VPN connection. In my case, after disconnect VPN, everything is working.
BTW, reconnect and authorize works for me.
gcloud container clusters get-credentials my-cluster-nameJust a note here in case anyone else finds this useful, “little snitch” has a code signature validation feature that can block kubectl from executing- so beware you may have to disable the network filter before getting started-- if you are using this app.
I saw the same error too when I ran
docker build -t hello-node:v1 .in the tutorial https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/#create-a-docker-container-image on Mac OS X Sierra (10.12.6), Docker version17.12.0-ce, minikube versionv0.25.0, xhyve version0.2.0and kubernetes versionv1.9.0:Switching to virtualbox fixed this issue for me.
I stopped minikube, deleted it, started it without
--vm-driver=xhyve(minikube uses virtualbox driver by default), and thendocker build -t hello-node:v1 .worked fine without errors:I do see the
kube-dnspod running:This issue does look like an
xhyveissue not seen with virtualbox. My virtualbox version is5.2.6r120293:@mehuman, @weisserd I could kiss you right now I was going a little nutty about this. This finally worked for me. Thx!
I have the same problem:
Docker for mac works correctly, but Minikube docker host doesn’t seem to be able to pull images.
OS: macos Sierra 10.12.2 (16C67) Driver: xhyve ISO: minikube-v1.0.7.iso
I solved my issue by disabling macos firewall. It seems mac’s firewall avoids machines created with docker-machine-driver-xhyve to have network connectivity.
I also had to manually change the nameserver in /etc/resolv.conf to 8.8.8.8 (inside the minikube vm) to get name resolution working.
Note that I don’t have any of these issues using Docker for Mac normally, so they probably must have implemented some workarounds for these issues.