如何在microk8s中获得承载令牌?

时间:2019-03-14 02:19:41

标签: kubernetes microk8s

我想登录到microk8s仪表板,但是我需要一个承载令牌。如何在microk8s Kubernetes中找到用户admin的承载令牌?

1 个答案:

答案 0 :(得分:1)

在microk8s中,承载令牌列在文件/snap/microk8s/current/known_token.csv中。 Each line is of the format

bearer_token,user,uid,"group1,group2,group3"

在以下示例文件中,用户admin的承载令牌为rICHredacted4YWK

RPY4redactedS65i,system:kube-proxy,kube-proxy
rICHredacted4YWK,admin,admin,"system:masters"
tzgVredactedW4YW,system:node:ip-172-31-14-2,kubelet-0,"system:nodes"