<p>I installed Kubernetes in virtual BOX  previously it was working properly but not it is showing <strong>The connection to the server 192.168.42.141:6443 was refused - did you specify the right host or port?</strong>, Please help.</p>

Dewa
<blockquote>
  <p>The connection to the server 192.168.42.141:6443 was refused - did you specify the right host or port?</p>
</blockquote>

<p>According to issue there might be <code>kube-apiserver</code> not running state. To check the apiserver status run following command</p>

<pre><code>$ docker ps
# If above is not sowing apiserver container, then it is stopped, To see the stopped container run
$ docker ps -a
</code></pre>

<p>P.S: From the comment there is also a version mismatch. To update kubectl follow <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux" rel="nofollow noreferrer">this</a></p>
