0

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?

mohan08p
  • 5,002
  • 1
  • 28
  • 36
lang2
  • 11,433
  • 18
  • 83
  • 133
  • 1
    Try with `kubectl --kubeconfig foo get node -v=8`, you may found the internal IP of master is called instead of public IP. – silverfox Sep 29 '18 at 09:18
  • thanks for the tip. It looks like that the server did return valid response but kubectl wasn't able to handle. I think I came across a bug like this – lang2 Sep 29 '18 at 09:58
  • What do you have with `kubectl version` ? kubectl introduced a backward incompatibility with v1.11 if I recall correctly. Overall I would say you should use a kubectl version matching your cluster version. – Hiruma Oct 01 '18 at 03:22

1 Answers1

1

Your kubectl version is incompatible with your Kubernetes version.

samhain1138
  • 1,035
  • 8
  • 7