Kubernetes Dashboard is a web-based Kubernetes user interface. You can use Dashboard to deploy containerized applications to a Kubernetes cluster, troubleshoot your containerized application, and manage the cluster 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). For example, you can scale a Deployment, initiate a rolling update, restart a pod or deploy new applications using a deploy wizard. for more check this
For more details, check official page here.
Minikube doesn’t have K8S Dashboard by default, but installation is very straight forward, details and screenshots below.
You need to start MiniKube first 🙂
MiniKube has a quick command that makes installing Kubernetes dashboard the easiest. Not only this but to proxy the requests to your local machine and opens it in your browser.
Now you can manage Kubernetes throught your web browser.
If you close the browser, you will need to run Minikube dashboard command again to make the proxy mapping.
If you want to make permanent port mapping you will need to create a service and map it to port 9090 as dashboard deployment (pods within) is published on that port
This can be easily done by kubectl command as below:
1- Delete existing port mapping (Service)
kubectl delete service kubernetes-dashboard -n kube-system
2- Expose deployment to external port
kubectl expose deployment kubernetes-dashboard --type=LoadBalancer -n kube-system
3- list the service details to know the external port for Kubernetes Dashboard
kubectl get service kubernetes-dashboard -n kube-system
Now open the browser and type the following http://<minikube IP>:<exposed port>