<p>I installed Kubernetes on linux using the steps <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" rel="nofollow noreferrer">here</a>.</p>

<p>Everything worked fine until I exited the terminal and opened a new terminal session.</p>

<p>I got a permission denied error and after restarting my machine I get the following error </p>

<pre><code>&gt; kubectl get pod&lt;br/&gt;
error: couldn't read version from server: Get http://localhost:8080/api: dial tcp 127.0.0.1:8080: connection refused
</code></pre>

<p>I am just getting started with Kubernetes any help would be appreciated. </p>

<p>seems like a TCP problem. try to isolate the problem by checking if TCP/8080 is open by issue </p>

<blockquote>
  <p>telnet 127.0.0.1 8080</p>
</blockquote>

<p>if you got a 'connection refused' - you should probably look at the firewall/security setting of your machine.</p>
