How To Bring Up The Kubernetes Dashboard ? K8s-Part: 5

0
123
views
How To Bring Up The Kubernetes Dashboard ? K8s-Part: 5

Bring Up The Kubernetes Dashboard on Network! Uhhuh!

Kubernetes is very handy with the command line but kubernetes also have a dashboard which provides a good UI and helps in managing Kubernetes task like creating service, new deployments etc. Kubernetes dashboard helps to go through your all the deployments and other useful information just in few clicks.

Kubernetes dashboard is deployed as contained inside pods in the cluster. The dashboard can be deployed using a YAML file. You can download this YMAL file from its official repository. The latest version is always ready for you on this link of the official Kubernetes repository

Well, I wrote this article because Kubernetes dashboard was available by just running a command kubectl proxy but it provides dashboard locally on the deployed server with the article, we can access the dashboard from the network also.

Prerequisite: Running Kubernetes Cluster
Scenario: Kubernetes Master 192.168.56.101

Let’s start

Step 1: Deploy Dashboard YAML

Use the below command to deploy the dashboard YAML file from Kubernetes repository. This YAML is available from the Kubernetes official repository. you may also get the file to apply the YAML file.

we can confirm the deployment using below command

Step 2: Setup The Dashboard With Admin Role

To set up Kubernetes dashboard with admin right s you need to create a YAML file as below

Step 3: Expose your Dashboard

Now expose your dashboard with the master IP so that you may access it from anywhere you want to access

Here we can see that we have a PID its working and our proxy is live




Step 4: Access Dashboard

After hitting the previous command dashboard is accessible at below URL. so open your browser in your Kubernetes server network. For me, it is 192.168.56.0/24.

URL: http://192.168.56.101:443/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/

How to Install Kubernetes dashboard

Now click on skip because we have already defined admin role in YAML file

How to Install Kubernetes dashboard

Well, we have successfully deployed the dashboard and you may deploy any new application by clicking +create button on the top right corner.

In the next article, we will discuss minikube(local Kubernetes cluster).

Understanding Kubernetes Concepts RHEL/CentOs K8s Part-1
Understanding Kubernetes Concepts RHEL/CentOs k8s: Part-2
How to Install Kubernetes on CentOS/RHEL k8s?: Part-3
How to Install Kubernetes on CentOS/RHEL k8s?: Part-4
How To Bring Up The Kubernetes Dashboard? K8s-Part: 5
How to Run Kubernetes Cluster locally (minikube)? K8s – Part: 6
How To Handle Minikube(Cheatsheet)-3? K8s – Part: 7
How To Handle Minikube(Cheatsheet)-3? K8s – Part: 8
How To Handle Minikube(Cheatsheet)-3? K8s – Part: 9