minikube: The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
This is a BUG REPORT
Minikube version (use minikube version):
minikube version: v0.19.0
Environment:
- OS MacOS
- VM Driver Virtualbox
- ISO version “Boot2DockerURL”: “file:///Users/tuna/.minikube/cache/iso/minikube-v0.18.0.iso”
What happened: The connection to apiserver is unstable after starting k8s
Tunas-MacBook-Pro:kubeless tuna$ kubectl get po --all-namespaces
The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
Tunas-MacBook-Pro:kubeless tuna$ kubectl get po --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system kube-addon-manager-minikube 1/1 Running 0 7h
kube-system kube-dns-268032401-xcw9q 3/3 Running 0 7h
kube-system kubernetes-dashboard-68l5t 1/1 Running 0 7h
Tunas-MacBook-Pro:kubeless tuna$ kubectl get po --all-namespaces
The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
Tunas-MacBook-Pro:kubeless tuna$ kubectl get po --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system kube-addon-manager-minikube 1/1 Running 0 7h
kube-system kube-dns-268032401-xcw9q 3/3 Running 0 7h
kube-system kubernetes-dashboard-68l5t 1/1 Running 0 7h
Tunas-MacBook-Pro:kubeless tuna$ kubectl get po --all-namespaces
The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
Tunas-MacBook-Pro:kubeless tuna$ kubectl get po --all-namespaces
The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
Tunas-MacBook-Pro:kubeless tuna$ kubectl get po --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system kube-addon-manager-minikube 1/1 Running 0 7h
kube-system kube-dns-268032401-xcw9q 3/3 Running 0 7h
kube-system kubernetes-dashboard-68l5t 1/1 Running 0 7h
Tunas-MacBook-Pro:kubeless tuna$ kubectl get po --all-namespaces
The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
SSH-ing into minikube and see no container running, I think it ends up with on-off
$ minikube ssh
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
What you expected to happen: Stability
How to reproduce it (as minimally and precisely as possible):
$ minikube start
$ kubectl get po --all-namespaces
Anything else do we need to know: It’s not happening all the time. Sometime it works and sometime it doesn’t. But I’ve never seen this issue with the minikube v0.17.x or older
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 10
- Comments: 16 (3 by maintainers)
Had the same problem. Apparently issue was with minikube. Solved by : minikube delete minikube start
just restart your vm, then [minikube start]
@jmiddleton Yes workaround is deleting all thirdpartyresource before stop the machine.