<p>I am quite new to kubernetes and when i check the kubernetes version with kubectl version I am getting the following error.</p>
<pre><code>Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;8&quot;, GitVersion:&quot;v1.8.0&quot;, GitCommit:&quot;6e937839ac04a38cac63e6a7a306c5d035fe7b0a&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2017-09-28T22:57:57Z&quot;, GoVersion:&quot;go1.8.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;windows/amd64&quot;}
    Unable to connect to the server: dial tcp 127.0.0.1:6443: connectex: No connection could be made because the target machine actively refused it.
</code></pre>
<p>Can you please help me with this?</p>
<p>Thanks in advance!</p>

lse23
<p>Seems you have setup kubernetes via kubeadm. Please verify if your kubernetes is running or not.</p>
<pre><code>systemctl restart kubeadm
</code></pre>
<p>After that check if port is listening or not</p>
<pre><code>netstat -an | grep :6443
</code></pre>
