Command to get the secret key used to login into the dashboard

0 votes
What is the command I need to execute to get the secret key used to login into my dashboard.

Thanks..
Oct 8, 2018 in Kubernetes by lina
• 8,200 points
60 views

1 answer to this question.

0 votes

Hey @Lina, use this command you'll get a secret key, copy the key and past it on the token section on the dashboard.

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

Hope this helped :)

answered Oct 8, 2018 by Kalgi
• 51,830 points

Related Questions In Kubernetes

0 votes
1 answer

How do I create a service account for my dashboard and get all the credentails

Run the following commands: This command will create ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 51,830 points
475 views
0 votes
1 answer

Where to set aws access/secret key for kube-up.sh

put following commands into a file xxxxx export ...READ MORE

answered Oct 29, 2018 in Kubernetes by Kalgi
• 51,830 points
187 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,830 points

reshown Apr 12, 2019 by Kalgi 1,536 views
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, 2019 in Others by anonymous
5,635 views
0 votes
1 answer

When I try to connect to the WebSocket through the gateway I get a 403 error

Try upgrading Contour to v0.6.0-beta.3 with IngressRoute You can ...READ MORE

answered Oct 1, 2018 in Kubernetes by Kalgi
• 51,830 points
677 views
0 votes
1 answer

Not able to access the kubernetes dashboard

Have you executed this proxy command? kubectl proxy Try ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 51,830 points
244 views