Helm Repositories: Finding and Adding Charts
You'll learn how to discover Helm charts from public repositories and add them to your local Helm configuration for easy installation.
What Are Helm Repositories?
A Helm repository is essentially a web server hosting an index of packaged charts. Think of it like an app store for Kubernetes applications—you browse, find what you need, and install it. The most popular hub for discovering charts is Artifact Hub (artifacthub.io), which aggregates charts from various repositories.
Searching for Charts
Before adding repositories, you can search Artifact Hub directly from the command line:
helm search hub wordpress
This shows all WordPress charts available across public repositories, along with their sources.
Adding a Repository
Once you've found a chart you like, you need to add its repository to your Helm client:
helm repo add bitnami https://charts.bitnami.com/bitnami
Here, bitnami is the local name you're assigning (you can choose any name), and the URL points to the actual repository.
Managing Repositories
List your configured repositories:
helm repo list
Update repository indexes to fetch the latest chart versions:
helm repo update
Search within a specific repository you've added:
helm search repo bitnami/wordpress
Remove a repository when no longer needed:
helm repo remove bitnami
Repositories as Chart Libraries
Repositories act like package managers (apt, yum, npm). Instead of downloading individual chart files manually, you reference a repository once, then install any chart from it by name—Helm handles the download automatically.
Key Takeaway: Helm repositories centralize chart distribution; use helm repo add to register sources, helm search to discover charts, and helm repo update to stay current with the latest versions.