error: You must be logged in to the server - the server has asked for the client to provide credentials - “kubectl logs” command gives error

后端 未结 4 1212
小蘑菇
小蘑菇 2021-02-15 02:11

We had setup kubernetes 1.10.1 on CoreOS with three nodes. Setup is successfull

NAME                STATUS    ROLES     AGE       VERSION
node1.example.com   Rea         


        
4条回答
  •  滥情空心
    2021-02-15 02:28

    Looks like you misconfigured kublet:

    You missed the --client-ca-file flag in your Kubelet Service File

    That’s why you can get some general information from master, but can’t get access to nodes.

    This flag is responsible for certificate; without this flag, you can not get access to the nodes.

提交回复
热议问题