<p>When i run the kubectl version command , I get the following error message.</p>

<pre><code>kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2017-12-15T21:07:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Unable to connect to the server: dial tcp 192.168.99.100:8443: i/o timeout
</code></pre>

<p>How do I resolve this?</p>

IT_novice
<p>You can get relevant information about the client-server status by using the following command.</p>
<pre><code>kubectl config view 
</code></pre>
<p>Now you can update or set  k8s context accordingly with the following command.</p>
<pre><code>kubectl config use-context CONTEXT-CHOSEN-FROM-PREVIOUS-COMMAND-OUTPUT
</code></pre>
<p>you can do further action on kubeconfig file. the following command will provide you with all necessary information.</p>
<pre><code>kubectl config --help
</code></pre>
