Kubernetes (11 Blogs) Become a Certified Professional
AWS Global Infrastructure

DevOps

Topics Covered
  • DevOps (92 Blogs)
  • Docker (9 Blogs)
  • DevOps Engineer Masters Program (18 Blogs)
  • Kubernetes (11 Blogs)
SEE MORE

Kubernetes Dashboard Installation and Views

Last updated on Dec 15,2021 37.1K Views

5 / 8 Blog from Kubernetes

Kubernetes Dashboard 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. So, if you want to get certified in Kubernetes, and master this tool, you can uplift your career as a DevOps Engineer with the Kubernetes Certification.

So before moving on let us see what are the topics, we will be covering in this blog: 

What is Kubernetes Dashboard?

A Kubernetes dashboard is a web-based Kubernetes user interface which is used to deploy containerized applications to a Kubernetes cluster, troubleshoot the applications, and manage the cluster itself along with its attendant resources.

Uses of Kubernetes Dashboard

  • To get an overview of applications running on your cluster.
  • To create or modify the individual Kubernetes resources for example Deployments, Jobs, etc.
  • It provides the information on the state of Kubernetes resources in your cluster, and on any errors that may have occurred.

Installing the Kubernetes Dashboard

How to Deploy Kubernetes Dashboard?

Run the following command to deploy the dashboard:

kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml

Accessing Dashboard using the kubectl 

kubectl proxy

It will proxy server between your machine and Kubernetes API server.

Now, to view the dashboard in the browser, navigate to the following address in the browser of your Master VM:

http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

You will then be prompted with this page, to enter the credentials:

In this step, we will create the service account for the dashboard and get its credentials.
Note: Run all these commands in a new terminal, otherwise your kubectl proxy command will stop. 

Run the following commands:

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

kubectl create serviceaccount dashboard -n default

Add the cluster binding rules to your dashboard account

kubectl create clusterrolebinding dashboard-admin -n default  --clusterrole=cluster-admin  --serviceaccount=default:dashboard

Copy the secret token required for your dashboard login using the below command:

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

token - Kubernetes dashboard - Edureka 4

Copy the secret token and paste it in Dashboard Login Page, by selecting a token option

After Sign In you will land to Kubernetes Homepage.

Home Page
You’ll see the home/welcome page in which
 you can view which system applications are running by default in the kube-system namespace of your cluster, for example, the Dashboard itself.

homepage - Kubernetes dashboard - Edureka

Views of the Kubernetes Dashboard UI

Kubernetes Dashboard consists of following dashboard views:

  • Admin View
  • Workloads View
  • Services View
  • Storage and Config View 

Let’s start with the admin view.

Admin View

It lists Nodes, Namespaces, and Persistent Volumes which has a detailed view of them, where node list view contains CPU and memory usage metrics aggregated across all Nodes and the details view shows the metrics for a Node, its specification, status, allocated resources, events, and pods running on the node.

Node detail view

Workloads View

It is the entry point view that shows all applications running in the selected namespace. It summarizes the actionable information about the workloads, for example, the number of ready pods for a Replica Set or current memory usage for a Pod.

Workloads view

Services View

It shows the shows Kubernetes resources that allow for exposing services to the external world and discovering them within a cluster.

Service list partial view

Storage and Config View 

The Storage view shows Persistent Volume Claim resources which are used by applications for storing data whereas config view is used to shows all the Kubernetes resources that are used for live configuration of applications running in clusters.

Secret detail view

Got a question for us? Please mention it in the Continuous Integration Tools comments section and we will get back to you or join our Kubernetes Training in Agra today.

Upcoming Batches For Kubernetes Certification Training Course: Administrator (CKA)
Course NameDateDetails
Kubernetes Certification Training Course: Administrator (CKA)

Class Starts on 22nd February,2025

22nd February

SAT&SUN (Weekend Batch)
View Details
Comments
2 Comments

Join the discussion

Browse Categories

webinar REGISTER FOR FREE WEBINAR
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP

Subscribe to our Newsletter, and get personalized recommendations.

image not found!
image not found!

Kubernetes Dashboard Installation and Views

edureka.co