简体   繁体   中英

kubectl unable to access remote cluster

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?

您的kubectl版本与Kubernetes版本不兼容。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM