<p>Ubuntu 19.4</p>

<p>Just installed kubectl via snap: <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/tools/install-kubectl/</a></p>

<pre><code>lky@lky-Z170-D3H:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:23:09Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
</code></pre>

<p>Any ideas what could cause it?</p>

Łukasz
<p>it means that kubectl client version that you have installed is v1.14.2.</p>

<p>you cant connect to api server due to some issue, and hence kubernetes server version is not shown.</p>

<p>run below command to check kubernetes control plane health and take action on the components that are shown as UnHealthy</p>

<pre><code>kubectl get cs
</code></pre>
