Kubernetes Dashboard

Kubernetes Dashboard

Kubernetes Dashboard allows you to manage pods and cluster configuration from web user interface (UI). You can write your own yaml or json file and upload it via Dashboard and it will automatically create deployments for you.

Kubernetes Dashboard is free to install and you can follow below steps. I will be using Kubernetes v1.9.2. Depending on when you are reading this blog, a version may change.

Login to your master node and execute below command:

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

The above command will create a deployment in Kubernetes. You can check the status of the pod by executing following command:

sudo kubectl get pods --all-namespaces

If you see the status ContainerCreating, wait for few minutes. It is in process of downloading the image and spin up a pod for you. After few minutes, the status of the pod should change to running status.

Once you have successfully deployed Kubernetes Dashboard, you can browse the from your remote machine by executing below command to open proxy connection to Kubernetes master node.

kubectl proxy

Kubernetes Dashboard needs cluster role permission in order to access it from remotely. Follow this article here.

Also if you haven't already installed Kubernetes CLI on remote machine to manage Kubernetes Cluster, I recommand this article as well.