How to set up Kubernetes Dashboard Web UI

Reading Time: 3 minutes

Hello Viewers! In this blog we are going to see how to set up Kubernetes Dashboard Web UI. So, Before starting we will see what a kubernetes dashboard is. Therefore, It is a general purpose, web-based UI for Kubernetes clusters. It allows users to manage applications running in the cluster and troubleshoot them, as well as manage the cluster itself. Following is an exhaustive list of the functionality provided by the dashboard:

  • Overview of the Kubernetes cluster
  • Deploy applications onto your Kubernetes clusters
  • Get an overview of the applications running
  • Troubleshoot those applications
  • Get an overview of the resources running in the cluster
  • Create, modify, update and delete Kubernetes resources
  • Information about the state of the Kubernetes resources running in the cluster
  • Basic resource metrics including resource usage for individual Kubernetes objects

Getting started with Kubernetes Dashboard:

We assume that you already have a Kubernetes cluster up and running and have installed Kubectl. Deploy the Kubernetes dashboard using following Kubectl:

Access Kubernetes Dashboard using Kubectl:

To access it from your local workstation you must create a secure channel to your Kubernetes cluster. Run the following command:

Kubectl proxy is the recommended way of accessing the Kubernetes REST API. It uses http for the connection between localhost and the proxy server and https for the connection between the proxy and apiserver.

We can access the Kubernetes dashboard UI by browsing to the following url: 

Create An Authentication Token

The token authentication method requires us to create a new service account for it.Therefore, We will bind this service account to the cluster-admin role, which will give us access to all Kubernetes resources on the dashboard. 

Create the dashboard service account:

Kubernetes Dashboard

This will create a service account named dashboard-admin-sa in the default namespace. Next bind the dashboard-admin-service-account service account to the cluster-admin role.

Kubernetes Dashboard

When we created the dashboard-admin-sa service account Kubernetes also created a secret for it. List secrets using following command:

Kubernetes Dashboard

Use kubectl describe to get the access token:

Copy the token and enter it into the token field on its login page.

Kubernetes Dashboard

We can now access it and will land on the overview page for the default namespace. 

Kubernetes Dashboard

It has four following main sections;

  • Cluster
  • Workload
  • Discovery and Load Balancing and
  • Config and Storage


Therefore, In this we have seen how to Setup kubernetes dashboard Web UI.We started by looking at the functionality provided by it and then covered the topics of installation, deployment and authentication. Thanks for being with me till the end. If you find this blog helpful do share with your friends.


Written by 

Naincy Kumari is a DevOps Consultant at Knoldus Inc. She is always ready to learn new technologies and tools. She loves painting and dancing.