Introduction
Helm chart repositories are remote servers containing a collection of Kubernetes resource files. Charts are displayed in directory trees and packaged into Helm chart repositories.
To deploy applications with Helm, you need to know how to manage repositories.
In this tutorial, you will learn how to add, update, or remove Helm chart repositories.
Prerequisites
- A system running Ubuntu, Windows, or Mac.
- Access to a command line/terminal.
- A Kubernetes cluster installed.
- Helm installed and configured.
How to Add Helm Repositories
The general syntax for adding a Helm chart repository is:
helm repo add [NAME] [URL] [flags]
To add official stable Helm charts, enter the following command:
helm repo add stable https://charts.helm.sh/stable
The terminal prints out a confirmation message when adding is complete:
List the contents of the repository using the search repo command:
helm search repo stable
The terminal prints out the list of all available charts.
How to Update Helm Repositories
Update all Helm repositories in your system by running the following command:
helm repo update
The output contains a list of all updated repositories.
How to Remove Helm Repositories
The general syntax for removing Helm repositories is:
helm repo remove [REPO1 [REPO2 ...]] [flags]
Remove a Helm repository by entering:
helm repo remove stable
The terminal prints out a confirmation message once the repository is removed.
Note: Replace stable with the name of the repository you wish to remove.
Conclusion
After reading this tutorial, you should know how to add, update, or remove Helm repositories.
If you made some changes to your application that you want to revert, check out our article on how to rollback changes in Helm.
Next you should also read
DevOps and Development,Virtualization
How to Install Helm on Ubuntu, Mac and Windows
December 10, 2020
Helm is a package manager for Kubernetes that simplifies deployment process. Follow this step-by-step…
DevOps and Development,Virtualization
How to do Canary Deployments on Kubernetes
December 1, 2020
A canary deployment is used to test out new features and upgrades, to see how they handle the production…
SysAdmin,DevOps and Development,Virtualization
19 Kubernetes Best Practices for Building Efficient Clusters
September 23, 2020
Kubernetes is a feature-rich orchestration tool. The best practices outlined in this article are going to…
DevOps and Development,Virtualization
How to Containerize Legacy Applications
February 27, 2020
This article focuses on the benefits of migrating to a new distributed architecture. Containers have taken…
Author
Nevena Pavlicic
Nevena Pavlicic is an aspiring Technical Writer at PhoenixNAP with experience in writing user manuals and blog posts. She has always enjoyed researching and building knowledge on cutting edge technologies, but she is also passionate about simplifying complex concepts.