0

I've deployed a cluster with Kubeadm on CentOS, and deployed flannel, heapster, and kubernetes-dashboard and now when I try to reach dashboard url (after running kubectl proxy), it asks for config file or token. I've tried the config file I've been using with kubectl but no success... Got no clue about token, tried the one that was supposed to be used to join nodes to the cluster, but no success... any help?

  • here is the document for the dashboard access control. https://github.com/kubernetes/dashboard/wiki/Access-control – sfgroups Oct 02 '17 at 13:25
  • What tutortial did you use to install Kubernetes on Centos7? – wiwa1978 Oct 06 '17 at 20:21
  • You may want to check the answer here https://stackoverflow.com/questions/46664104/how-to-sign-in-kubernetes-dashboard/46720109#46720109 – ichbinblau Oct 16 '17 at 02:03

1 Answers1

0

Use something like this to get the token for the secret k8s-dashboard-sa-token-XXXXX:

$ kubectl -o json get secret k8s-dashboard-sa-token-XXXXX | jq -r '.data.token' | base64 -d
eyJhbGci    ... sjcuNA8w

Check out my other answer for full context.

Also take a look on this other answer as commented by @ichbinblau

tonejito
  • 319
  • 1
  • 2
  • 5