title: The connection to the server xxxx:6443 was refused - did you specify the right host or port?
body: <p>I follow <a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/" rel="nofollow noreferrer">this</a> to install kubernetes on my cloud. 
  When I run command <code>kubectl get nodes</code> I get this error: </p>
  
  <pre><code>The connection to the server localhost:6443 was refused - did you specify the right host or port? 
  </code></pre>
  
  <p>How can I fix this?</p>