<p>I'm getting following error message:</p>
<pre><code>root@master-1:~# microk8s.kubectl get no
The connection to the server 127.0.0.1:16443 was refused - did you specify the right host or port?
</code></pre>
<p>Even <code>microk8s.kubectl cluster-info dump</code> fails with message above. When I run <code>microk8s start</code> it still the same.</p>

<p>It is hard to tell exactly what might went wrong here but there are few things that you could do in order to fix your issue:</p>
<ul>
<li><p><code>.kube/config</code> is missing or not configured correctly. Create or copy a valid <a href="https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#:%7E:text=The%20kubectl%20command%2Dline%20tool,of%20referring%20to%20configuration%20files." rel="nofollow noreferrer">kubeconfig</a> file to solve this.</p>
</li>
<li><p>You have <code>swap</code> not turned off. With <code>swap</code> enabled, kubelet service will not start. Execute: <code>sudo swapoff -a</code> in order to make sure it is disabled.</p>
</li>
<li><p><code>kubelet</code> might be down. Check <code>kubelet</code> logs and make sure that <code>kube-apiserver</code> is up and running.</p>
</li>
<li><p>Check which ports are appropriate to use with the <code>telnet</code> command.</p>
</li>
</ul>
