<p>I have an admin.conf file containing info about a cluster, so that the following command works fine:</p>

<pre><code>kubectl --kubeconfig ./admin.conf get nodes
</code></pre>

<p>How can I <code>config</code> kubectl to use the cluster, user and authentication from this file as default in one command? I only see separate set-cluster, set-credentials, set-context, use-context etc. I want to get the same output when I simply run:</p>

<pre><code>kubectl get nodes
</code></pre>

<p>Here are the official documentation for how to configure kubectl</p>

<p><a href="http://kubernetes.io/docs/user-guide/kubeconfig-file/" rel="noreferrer">http://kubernetes.io/docs/user-guide/kubeconfig-file/</a></p>

<p>You have a few options, specifically to this question, you can just copy your <code>admin.conf</code> to <code>~/.kube/config</code></p>
