Kubernetes Dashboard

A greater technique to handle Kubernetes sources.

What’s the Kubernetes Dashboard?

Kubernetes Dashboard is a web-based consumer interface to visualise the Kubernetes cluster. It reveals you the small print of the Kubernetes cluster, together with the nodes within the cluster, namespaces, volumes, cluster roles, job particulars, and rather more. You possibly can deploy a containerized utility in only a few clicks by means of the Kubernetes dashboard and simply handle all cluster sources.


You could have a operating Kubernetes cluster earlier than establishing a Kubernetes dashboard. Learn this text to discover ways to arrange Kubernetes.

Deploy the Kubernetes dashboard

Run under kubectl command on the grasp node to deploy the Kubernetes dashboard.

geekflare@kubernetes-master:~$ sudo kubectl apply -f https://uncooked.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/advisable.yaml
namespace/kubernetes-dashboard created
serviceaccount/kubernetes-dashboard created
service/kubernetes-dashboard created
secret/kubernetes-dashboard-certs created
secret/kubernetes-dashboard-csrf created
secret/kubernetes-dashboard-key-holder created
configmap/kubernetes-dashboard-settings created
position.rbac.authorization.k8s.io/kubernetes-dashboard created
clusterrole.rbac.authorization.k8s.io/kubernetes-dashboard created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
deployment.apps/kubernetes-dashboard created
service/dashboard-metrics-scraper created
deployment.apps/dashboard-metrics-scraper created

You possibly can see dashboard pods at the moment are lively.

geekflare@kubernetes-master:~$ kubectl get pods --all-namespaces
kube-system coredns-6955765f44-hwxdq 1/1 Working 0 6m35s
kube-system coredns-6955765f44-z2tdg 1/1 Working 0 6m35s
kube-system etcd-kubernetes-master 1/1 Working 0 6m45s
kube-system kube-apiserver-kubernetes-master 1/1 Working 0 6m45s
kube-system kube-controller-manager-kubernetes-master 1/1 Working 0 6m45s
kube-system kube-proxy-4b5jz 1/1 Working 0 6m35s
kube-system kube-proxy-v26wn 1/1 Working 0 26s
kube-system kube-scheduler-kubernetes-master 1/1 Working 0 6m45s
kubernetes-dashboard dashboard-metrics-scraper-76585494d8-czrtf 1/1 Working 0 2m37s
kubernetes-dashboard kubernetes-dashboard-5996555fd8-5mhxm 1/1 Working 0 2m37s

Entry the Kubernetes dashboard

Run the command under to entry the Kubernetes dashboard at (change this to your IP)

geekflare@kubernetes-master:~$ kubectl proxy --port=8001 --address='' --accept-hosts="^*$"
Beginning to serve on

Open the browser and go to the hyperlink under to log in to the Kubernetes dashboard.

These are the 2 methods to login to Kubernetes Dashboard.

  • Token
  • kubeconfig

Generate a token to login

  • Create a service account within the default namespace.
geekflare@kubernetes-master:~$ kubectl create serviceaccount geekflare -n default
serviceaccount/geekflare created
  • Create cluster binding guidelines for the newly created service account.
geekflare@kubernetes-master:~$ kubectl create clusterrolebinding geekflare-admin -n default --clusterrole=cluster-admin --serviceaccount=default:geekflare
clusterrolebinding.rbac.authorization.k8s.io/geekflare-admin created
  • Carried out kubectl command under to generate the token
geekflare@kubernetes-master:~$ kubectl get secret $(kubectl get serviceaccount geekflare -o jsonpath="{.secrets and techniques[0].title}") -o jsonpath="{.information.token}" | base64 --decode

You should use the generated token (as proven above) to login to the dashboard.


The opposite technique to log in is thru the Kubernetes configuration file.

  • Choose the Kubeconfig possibility and click on “Select Kubeconfig File.”
  • Use the admin.conf, file current at $HOME/.kube/config/ path and efficiently login to the dashboard
kubernetes dashboard kubeconfig

Dashboard interface

That is what the dashboard interface will appear like.

Kubernetes dashboard

You see the small print of the nodes, persistent volumes, namespaces, and cluster roles operating within the Kubernetes cluster.

Kubernetes dashboard nodes
Kubernetes dashboard: volume

Utilizing the dashboard, you possibly can write YAML code within the editor so as to add new sources to the cluster.

Kubernetes dashboard: create new resource

As soon as there are a number of jobs operating on the cluster, you get extra visualization choices. It can let you know which duties failed or succeeded. If there’s a drawback with the cluster, you possibly can simply see it on the dashboard.

Rate this post
porno izle altyazılı porno porno