Cloud Native 11 min read

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.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How to Deploy Prometheus on Kubernetes with Helm: A Step‑by‑Step Guide

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 helm

Refer 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 update

Install Prometheus Helm Chart on a K8s Cluster

Install the chart:

helm install prometheus prometheus-community/prometheus

The 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-ext

Access 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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Monitoringcloud nativeKubernetesPrometheusHelmHelm Chart
MaGe Linux Operations
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.