Kubernetes Dashboard on VMware PhotonOS

What is Kubernetes Dashboard

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.
You can use Dashboard to deploy containerized applications to a Kubernetes cluster, troubleshoot your containerized application, and manage the cluster itself along with its attendant resources. You can use Dashboard to get an overview of applications running on your cluster, as well as for creating or modifying individual Kubernetes resources (such as Deployments, Jobs, DaemonSets, etc)

Pre-requisites

  • Working Kubernetes Cluster ( Please refer my previous post (here) if required )
  • Internet Access on the VM/Docker Host where you are deploying the dashboard
  • In my case I will be deploying it on Master VM

Deployment

As per the documentation it pretty straight forward. Execute following command and if its meets all the checks it will download and install the dashboard

$ kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml

However

If you try to install it on Photon OS it will not be able to download the Container and it will fail
It successfully create deployment and service
It will create POD however you will see the Status as ImagePullBackoff

Based on my limited understanding and analysis , this is due to the way it schedules and looks up the “apiserver”.

In my case it was scheduling on worker nodes and it was trying to lookup using localhost hence it was failing to download the container

Work Around

You will have to create local yaml file and Uncomment the line and specify   –apiserver-host=http://my-address:port

$ kubectl create –f kubedashboard.yaml

Now you check the POD it will say status as Running
You can also validate Service and Deployment
Following are the docker containers it deploys
Now you should be able to access the dashboard http://masterip:8080/ui

References

  • https://kubernetes.io/docs/user-guide/ui/
  • https://github.com/kubernetes/dashboard

0 thoughts on “Kubernetes Dashboard on VMware PhotonOS

Leave a Reply

Your email address will not be published.

%d bloggers like this: