<p>When I try any kubectl command, it always returns:</p>
<pre class="lang-text prettyprint-override"><code>Unable to connect to the server: EOF
</code></pre>
<p>I followed these tutorials:</p>
<blockquote>
<p><a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" rel="noreferrer">https://kubernetes.io/docs/tasks/tools/install-kubectl/</a></p>
<p><a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/" rel="noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/</a></p>
</blockquote>
<p>But they have not helped me. According to the first link, by default, kubectl configuration is located at</p>
<pre class="lang-text prettyprint-override"><code>~/.kube/config
</code></pre>
<p>But in that path I don't have anything. I don't know if this is causing the issue.</p>
<p>Other thing is when I try to check the kubectl configuration:</p>
<pre class="lang-text prettyprint-override"><code>M:.kube candres$ kubectl cluster-info
Kubernetes master is running at http://localhost:8080

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
Unable to connect to the server: EOF
M:.kube candres$ kubectl cluster-info dump
Unable to connect to the server: EOF
</code></pre>
<p>The versions I have installed are:</p>
<p>Kubernetes - kubectl</p>
<pre class="lang-text prettyprint-override"><code>M:.kube candres$ kubectl version
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;9&quot;, GitVersion:&quot;v1.9.3&quot;, GitCommit:&quot;X&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2018-02-09T21:51:06Z&quot;, GoVersion:&quot;go1.9.4&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;}
Unable to connect to the server: EOF
</code></pre>
<p>Minikube</p>
<pre class="lang-text prettyprint-override"><code>M:.kube candres$ minikube version
minikube version: v0.25.0
</code></pre>
<p>Docker:</p>
<pre class="lang-text prettyprint-override"><code>M:.kube candres$ docker version
Client:
 Version:   17.12.0-ce
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    X
 Built: Wed Dec 27 20:03:51 2017
 OS/Arch:   darwin/amd64

Server:
 Engine:
  Version:  17.12.0-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.2
  Git commit:   X
  Built:    Wed Dec 27 20:12:29 2017
  OS/Arch:  linux/amd64
  Experimental: true
</code></pre>
<p>Does anyone know how to resolve this?</p>

<p>After Minikube is started, <strong>kubectl</strong> is configured automatically.</p>
<pre><code>minikube start
Starting local Kubernetes cluster...
Kubernetes is available at https://192.168.99.100:8443.
Kubectl is now configured to use the cluster.
</code></pre>
<p>You can verify and validate the cluster and context with following commands.</p>
<pre><code>kubectl config view
</code></pre>
