Ravindra BagaleCourses & study guides मराठी

Chapter 85: Helm for Kubernetes

DevOps

85.7 Repositories and popular charts

Story. Fatima needed Prometheus on a kind cluster for a Wipro-style demo in Kochi. She added the prometheus-community repo, searched, and installed kube-prometheus-stack into namespace monitoring. Same pattern you will use for nginx ingress, cert-manager and many operators.

helm repo add repo update helm search upgrade --install
Add a chart repository, update, search, then upgrade --install the chart into a namespace.

Why

You should not reinvent Prometheus YAML. Trusted repos publish maintained charts.

What

  • helm repo add — Register a chart repository URL.
  • helm repo update — Refresh the local index cache.
  • helm search repo — Find chart names and versions.
  • OCI registries — Some charts install with oci://... URLs instead of a classic repo.
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm search repo prometheus-community/kube-prometheus-stack

Output

NAME                                                CHART VERSION   APP VERSION DESCRIPTION
prometheus-community/kube-prometheus-stack          65.0.0          v0.76.0     kube-prometheus stack ...

What it shows: Chart name and versions available locally after update.

Example 2: Install into a namespace

helm upgrade --install mon prometheus-community/kube-prometheus-stack -n monitoring --create-namespace

What it shows: Release mon from a remote chart. Use value files to turn off pieces you do not need in class so the lab stays light on RAM.

When it is red

Error: repo prometheus-community not found

Fix. Run helm repo add again, then helm repo update.

Ravindra Bagale's Tip

Pin chart versions in prod (--version 65.0.0). Floating latest is fine only in a throwaway lab.

Quick quiz

Q1. What does helm repo update do?

Refreshes the cached index of chart versions.

Q2. Why pin --version in prod?

So a surprise chart release cannot change prod overnight.

Q3. What flag creates the namespace?

--create-namespace

Did you understand? Let us try it once more.