Hello Readers ! Hope you are developing interest with kubernetes after reading articles covering different aspects related to k8s. We work so hard for creating and deploying application on kubernetes. The next thing is we wish for a place from where we can get a complete view of our cluster , what all pods , replica-sets deployments are running and to add on this , if we are able to deploy pods and services without login to the cluster, that would be great right ?
I hope you agree with me and we are on the same page. Recently an article on kubernetes dashboard was published by Linux advise. It is a simple and basic tool for kubernetes visualization but things can be better. Here is one more tool that we are going to discuss in this article: KubeLens
We have below Azure Kubernetes Cluster ( AKS) already set up
In most of the cases , we will be using a windows host machine so we can download .exe file for lens from this link
After downloading the .exe file , install the software and open it.
Click on the plus sign to add cluster
We have to copy the kubeconfig file in the lens console
Just copy paste the kubeconfig file and click on Add clusters
Verification will happen and cluster will be added.
We will notice that there are no node/pod related metrics as of now. For this we will install Prometheus using Helm chart. For this we need to follow below steps.
Helm is a package manager for Kubernetes just like yum is for Centos and pip is for Python.
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh helm repo add stable https://kubernetes-charts.storage.googleapis.com/ helm search repo prometheus-operator helm install stable/prometheus-operator --generate-name
Once the Prometheus is installed ,enter the Prometheus service details
Right click on the cluster Icon on the left hand side of screen -- Go to settings -- Select Helm as Prometheus installation method -- Give the service name:port_number
After 10 minutes, graphs will be plotted as data will be available via Prometheus.
If in case you want to have a look on the native kubernetes dashboard - Click here
Hope you like this article. Take care !!