DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • How To Use Pandas and Matplotlib To Perform EDA In Python
  • Using OpenAI Embeddings Search With SingleStoreDB
  • Integration Testing Tutorial: A Comprehensive Guide With Examples And Best Practices
  • WireMock: The Ridiculously Easy Way (For Spring Microservices)

Trending

  • How To Use Pandas and Matplotlib To Perform EDA In Python
  • Using OpenAI Embeddings Search With SingleStoreDB
  • Integration Testing Tutorial: A Comprehensive Guide With Examples And Best Practices
  • WireMock: The Ridiculously Easy Way (For Spring Microservices)
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. How to Install the Kubernetes Dashboard

How to Install the Kubernetes Dashboard

Take a look at how you can install and make use of the built-in Kubernetes dashboard to better manage and track your applications.

Samarpit Tuli user avatar by
Samarpit Tuli
·
Sep. 12, 18 · Tutorial
Like (4)
Save
Tweet
Share
58.74K Views

Join the DZone community and get the full member experience.

Join For Free

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 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, e.g. 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

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 the 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:

Image title


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


Copy the secret token and paste it in Dashboard Login Page, by selecting a token option. After Sign In you will land on the Kubernetes Homepage.

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


Views of the Kubernetes Dashboard UI

Kubernetes Dashboard consists of following dashboard views:

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.


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, like the number of ready pods for a Replica Set or current memory usage for a Pod.


Services View

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


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.

Got a question for us? Please mention it in the Continuous Integration Tools comments section and we will get back to you.

Kubernetes Dashboard (Mac OS) cluster application

Published at DZone with permission of Samarpit Tuli, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • How To Use Pandas and Matplotlib To Perform EDA In Python
  • Using OpenAI Embeddings Search With SingleStoreDB
  • Integration Testing Tutorial: A Comprehensive Guide With Examples And Best Practices
  • WireMock: The Ridiculously Easy Way (For Spring Microservices)

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: