“authenticated as: anonymous Groups that you are in” error when checking kubectl version

流过昼夜 提交于 2019-12-02 10:13:25

You have to manually copy .kube/ directory from you cluster node into your local ~/.kube

If you don't have .kube/ on the master node, copy it from /etc/kubernetes/kube.conf

mkdir $HOME/.kube
scp root@<master-public-ip>:/etc/kubernetes/kubelet.conf $HOME/.kube/config

You can also define the filepath of kubeconfig by passing in --kubeconfig parameter, i.e.

kubectl version --kubeconfig ~/.kube/config
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!