Deploy and Access the Kubernetes Dashboard

Mark Shust
InstructorMark Shust
Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 3 years ago

How to use the Kubernetes Dashboard GitHub repo to deploy and access the Kubernetes Dashboard on a Mac. We'll learn how to start the services needed for the dashboard, how to create a new admin user, and then retrieve the token for that admin user to login to the dashboard.

Instructor: [0:00] The Kubernetes dashboard is not deployed by default. The first step is to deploy it from the official YAML file. We can retrieve that file by going to github.com/kubernetes/dashboard and copy the first line under Getting Started to the clipboard. Paste it in the terminal and execute it to start the dashboard services.

[0:19] Next, we'll run the kubectl proxy command. We'll put an ampersand on the end to run it in the background. Next, we'll follow the link of the repo which should point at localhost:8001 something.

[0:30] We'll then be presented with a login page, either a kubeconfig file or token. Let's create a new sample user to get us that token. Under the Create an Authentication Token heading, click the Creating Sample User Link. The steps are outlined quite well here, but we'll step through each one.

[0:46] First let's create a service account. Let's copy the contents of this YAML segments to the clipboard. Create a new folder in your sites folder named kubernetes-dashboard. Next, create a file called dashboard-adminuser.yaml and paste in the contents and save. We'll then start the configuration by running kubectl apply-f dashboard-adminuser.yaml.

[1:11] Finally, to get the bear token from this admin user we just created, we'll copy the four Bash line to our clipboard and paste it into terminal. The resulting app, we'll see the token. Copy this to the clipboard. Select Token back in the Kubernetes dashboard sign in page and paste in the value that token.

[1:29] After clicking sign in, we'll be logged into our local Kubernetes dashboard where we can inspect services, pods, replica sets and more.

egghead
egghead
~ an hour ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today