Skip to main content
In this lesson you’ll install Helm and deploy the kube-prometheus-stack Helm chart to provision Prometheus, Alertmanager, and related observability components on a Kubernetes cluster. The guide walks through installing Helm, adding the Prometheus Community repo, inspecting and customizing chart values, installing the chart, verifying the deployment, and uninstalling the release.

1) Install Helm

Follow the official Helm documentation for platform-specific instructions: https://helm.sh/docs/ Typical Linux install (official script):
Install via package managers:
For other package managers (APT, YUM, etc.), see the Helm docs linked above. Verify Helm is installed:
Example output (your version/build info may differ):

2) Add the Prometheus Helm repository and update

Add the Prometheus Community chart repository and refresh your local index:
Typical update output when the repo already exists:
The release name you provide when installing a chart (for example prometheus in this guide) is arbitrary. Choose any valid name; just be consistent when running helm upgrade, helm uninstall, or when querying resources by label.
Charts expose many configurable values. To view the kube-prometheus-stack defaults:
Save defaults to a file for customization:
A short illustrative excerpt from values.yaml:
Edit values.yaml to adjust namespace, persistence, resource requests/limits, scrape settings, alerting configuration, and dashboard imports.
To deploy with your custom values file, pass it during install or upgrade: helm install prometheus prometheus-community/kube-prometheus-stack -f values.yaml (or helm upgrade --install prometheus ... -f values.yaml).

4) Install the chart

Install the chart with default values:
Or install using your customized values:
Example installation summary:
Verify pods and other resources created by the release:

5) Uninstall the release

Remove the release and associated resources created by the chart:
If you deployed to a namespace other than default, append --namespace <namespace> to both install and uninstall commands.

Quick reference: common commands

Summary

  • Install Helm (script or package manager) and verify with helm version.
  • Add the prometheus-community Helm repository and run helm repo update.
  • Optionally inspect and customize chart defaults with helm show values and a values.yaml file.
  • Install the kube-prometheus-stack chart: helm install <release-name> prometheus-community/kube-prometheus-stack (use -f values.yaml to apply customizations).
  • Verify resources using kubectl and remove the release with helm uninstall <release-name>.
This article will be followed by a deeper look at the Kubernetes resources the kube-prometheus-stack chart creates and how Prometheus, Alertmanager, and the operator are configured.

Watch Video