1) Install Helm
Follow the official Helm documentation for platform-specific instructions: https://helm.sh/docs/ Typical Linux install (official script):2) Add the Prometheus Helm repository and update
Add the Prometheus Community chart repository and refresh your local index: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.3) Inspect chart values (optional but recommended)
Charts expose many configurable values. To view the kube-prometheus-stack defaults:values.yaml:
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:5) Uninstall the release
Remove the release and associated resources created by the chart: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-communityHelm repository and runhelm repo update. - Optionally inspect and customize chart defaults with
helm show valuesand avalues.yamlfile. - Install the kube-prometheus-stack chart:
helm install <release-name> prometheus-community/kube-prometheus-stack(use-f values.yamlto apply customizations). - Verify resources using
kubectland remove the release withhelm uninstall <release-name>.