kubectl unable to access remote cluster

9/29/2018

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?

-- lang2
kubernetes
kubernetes-cluster

1 Answer

9/29/2018

Your kubectl version is incompatible with your Kubernetes version.

-- samhain1138
Source: StackOverflow