title: Minikube: kubectl connection refused - did you specify the right host or port?
body: <p>I try to run minikube v0.22.1 and kubectl v1.7.5 on MacOS with Virtualbox.</p>
  
  <pre><code>$ minikube start
  Starting local Kubernetes v1.7.5 cluster...
  Starting VM...
  Getting VM IP address...
  Moving files into cluster...
  Setting up certs...
  Connecting to cluster...
  Setting up kubeconfig...
  Starting cluster components...
  Kubectl is now configured to use the cluster.
  
  $ minikube version
  minikube version: v0.22.1
  
  $ minikube status
  minikube: Running
  cluster: Running
  kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100
  </code></pre>
  
  <p>However all <code>kubectl</code> commands fail with "connection refused - did you specify the right host or port?"</p>
  
  <pre><code>$ kubectl version
  Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-08-31T19:32:26Z", GoVersion:"go1.9", Compiler:"gc", Platform:"darwin/amd64"}
  The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
  </code></pre>
  
  <p>The solution proposed <a href="https://stackoverflow.com/a/45274285/4415889">here</a> (<code>sudo ifconfig vboxnet0 up</code>) did not help, the vboxnet0 interface is up.</p>
  
  <p>Any ideas or suggestions are highly appreciated.</p>