I have a remote cluster with several nodes. I'd like to control it remotely from my laptop. So here is what I did:
scp root@remote-master:/root/.kube/config foo
foo
as well) for the master node is usedkubectl --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?
Your kubectl version is incompatible with your Kubernetes version.