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

后端 未结 1 338
刺人心
刺人心 2021-01-26 13:44

I am trying to setup the kubectl tool in my machine to remotely manage Kubernetes cluster and also to use Helm. I am trying in Ubuntu 16.04 machine.

I am following the o

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-26 14:27

    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@:/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
    

    0 讨论(0)
提交回复
热议问题