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:
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.
When we created the dashboard-admin-sa service account Kubernetes also created a secret for it. List secrets using following command:
Use kubectl describe to get the access token:
Copy the token and enter it into the token field on its login page.
We can now access it and will land on the overview page for the default namespace.
It has four following main sections;
- 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.