kubectl unable to access remote cluster

469 views Asked by At

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

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

it returns:

No resources found.
Error from server (NotAcceptable): unknown (get nodes)

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

What am I missing?

1

There are 1 answers

0
samhain1138 On

Your kubectl version is incompatible with your Kubernetes version.