<p>I have a remote cluster with several nodes. I'd like to control it remotely from my laptop. So here is what I did:</p>

<ol>
<li><code>scp root@remote-master:/root/.kube/config foo</code></li>
<li>change it so that the host name (let's say it's <code>foo</code> as well) for the master node is used</li>
<li><code>kubectl --kubeconfig foo get node</code></li>
</ol>

<p>it returns:</p>

<pre><code>No resources found.
Error from server (NotAcceptable): unknown (get nodes)
</code></pre>

<p>I've already checked that the <code>ca.crt</code> file is created with domain <code>foo</code> and <code>foo</code> is resolvable locally on my laptop. </p>

<p>What am I missing?</p>

lang2
<p>Your kubectl version is incompatible with your Kubernetes version.</p>
