How to Deploy Prometheus on Kubernetes with Helm: A Step‑by‑Step Guide
This tutorial walks you through installing Helm, using Helm commands to find and install the Prometheus Helm chart, exposing the Prometheus service, and accessing the monitoring UI on a Minikube Kubernetes cluster, complete with code snippets and screenshots.
Getting Started with Helm and Helm Charts
ArtifactHub provides public and private repositories for Helm charts. Helm charts simplify installing and managing Kubernetes applications such as Prometheus.
Install Helm
First start a Minikube cluster: minikube start --driver=docker Then install Helm according to your operating system:
sudo apt-get install helmchoco install Kubernetes-helmbrew install helmRefer to the official Helm documentation if needed.
Helm Commands
Run helm to list all commands. Common actions include helm search, helm pull, helm install, and helm list.
helm search – search charts in ArtifactHub.
helm pull – download a chart.
helm install – upload the chart to Kubernetes.
helm list – list releases of charts.
Prometheus Helm Charts
Search for Prometheus charts: helm search hub prometheus Add the official Prometheus community repository and update:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo updateInstall Prometheus Helm Chart on a K8s Cluster
Install the chart:
helm install prometheus prometheus-community/prometheusThe command outputs the release name, namespace, and notes on accessing the server and Alertmanager.
Expose the prometheus‑server Service
Expose the ClusterIP service as a NodePort:
kubectl expose service prometheus-server --type=NodePort --target-port=9090 --name=prometheus-server-extAccess the service from outside the cluster: minikube service prometheus-server-ext After a short wait, the generated URL can be opened in a browser to view the Prometheus UI.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
