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 helm choco install Kubernetes-helm brew 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.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
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.
