<p>I am learning kubernetes and using minikube to create single node cluster in my ubuntu machine. In my ubuntu machine Oracle Virtualbox is also installed. As I run</p>

<pre><code>$ minikube start

Starting local Kubernetes v1.6.4 cluster...
...

$ cat ~/.kube/config

apiVersion: v1
clusters:
- cluster:
    certificate-authority: /root/.minikube/ca.crt
    server: https://192.168.99.100:8443
  name: minikube
... 

$ kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8000

error: failed to discover supported resources: Get https://192.168.99.100:8443/api: Service Unavailable
</code></pre>

<p>I am not getting that what is causing this error. Is there some place we can check for logs. I cannot use kubectl logs as it requires container to mention which is not creating at all. Please provide any possible solution to problem.</p>

<p>You can debug using these steps:</p>

<ol>
<li><p><code>kubectl</code> talks to <code>kube-apiserver</code> at port 8443 to do its thing. Try <code>curl -k https://192.168.99.100:8443</code> and see if there's a positive response. If this fails, it means <code>kube-apiserver</code> isn't running at all. You can try restarting the VM or rebuilding minikube to see if it comes up properly the 2nd time round.</p></li>
<li><p>You can also debug the VM directly if you feel brave. In this case, get a shell on the VM spun up by minikube. Run <code>docker ps | grep apiserver</code> to check if the <code>kube-apiserver</code> pod is running. Also try <code>ps aux | grep apiserver</code> to check if it's run natively. If both don't turn up results, check the logs using <code>journalctl -xef</code>.</p></li>
</ol>
