title: Kubernetes Connection error
body: <p>I have installed the kubernetes as per the document and I am using Mac V10.13</p>
  
  <p>while I run <code>kubectl version</code> or <code>kubectl cluster-info</code></p>
  
  <p>I get this error:</p>
  
  <pre><code>The connection to the server localhost:8080 was refused - did you specify the right host or port?
  </code></pre>
  
  <p>I've looked many solutions but didn't fine one working, does anyone got the solution for this?</p>