<p>Now i did three things：
First, install kubectl on one linux machine,
Second, copy the admin.conf file from the remote k8s server to the ~/.kube/ file on the linux host,
Third, running kubectl get nodes under Linux reports an error. .</p>
<pre><code>wanlei@kf-test:~/.kube$ kubectl get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?
</code></pre>
<p>I want to know what steps I have missed. .
The goal is to use kubectl from my linux host to manage k8s on the remote host</p>

Layne Wu
<p>You need to place the <code>kubeconfig</code> file at <code>.kube/config</code> location i.e there should be a file with name <code>config</code> at <code>.kube</code> directory.That's where <code>kubectl</code> looks for the <code>kubeconfig</code> file by default.</p>
<p>Alternative to above would be defining <code>KUBECONFIG</code> environment variable to point to a <code>kubeconfig</code> file in a different location.</p>
