How do I sign-in to kubernetes dashboard?

0 votes

I'm running kubeadm and kubelet v1.8.0 and have installed the dashboard following the official docs.

$ kubectl apply -f

I started the dashboard using:

$ kubectl proxy --address="" -p 8001 --accept-hosts='^*$'

And it successfully started on:

I was redirected here:

enter image description here

So now, I don't how to login from here on. I tried to upload the /etc/kubernetes/admin.conf as kubeconfig but failed. I don't know how to use the token option. How do I sign in here?

Sep 7, 2018 in Kubernetes by shubham
• 6,890 points

I believe your kuberntes-dashboard version is under v1.10.0, because start from v1.11.0, dashboard due to security removed  the feature called "skip" on the login console. 

I missed the "skip" it is so easy.. just click it and you can access every thing.

1 answer to this question.

0 votes

Since version 1.7 Dashboard uses more secure setup. It means, that by default it has minimal set of privileges and can only be accessed over HTTPS. It is recommended to read Access Control guide before performing any further steps.

As of release 1.7 Dashboard supports user authentication based on:

--- Dashboard on Github

As for logging with Token. You'll have to create a service account for the dashboard and use it's credentials. Run these commands:

1. This command will create a service account for dashboard in the default namespace

$ kubectl create serviceaccount dashboard -n default

2. This command will add the cluster binding rules to your dashboard account

$ kubectl create clusterrolebinding dashboard-admin -n default \
  --clusterrole=cluster-admin \

3. This command will give you the token required for your dashboard login

$ kubectl get secret $(kubectl get serviceaccount dashboard -o jsonpath="{.secrets[0].name}") -o jsonpath="{.data.token}" | base64 --decode

Now copy the token and paste it in the token field on your dashboard login page.

answered Sep 7, 2018 by DareDev
• 6,810 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
+3 votes
1 answer
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
0 votes
1 answer
0 votes
2 answers

How to rename deployments in Kubernetes

Hey, You can edit or recreate it ...READ MORE

answered Dec 5, 2018 in Kubernetes by Maverick
• 10,040 points