0
0
Kubernetesdevops~5 mins

Adding chart repositories in Kubernetes - Commands & Configuration

Choose your learning style9 modes available
Introduction
When you want to install software on Kubernetes, you often use charts, which are packages of pre-configured resources. Adding a chart repository lets you access and install charts from that source easily.
When you want to install a popular application like nginx or Prometheus on your Kubernetes cluster.
When you need to add a new source of charts that is not included by default.
When you want to keep your charts updated from a trusted repository.
When you want to share your own charts with others by hosting a repository.
When you want to explore available charts before installing them.
Commands
This command adds the Bitnami chart repository to your Helm client so you can install charts from it.
Terminal
helm repo add bitnami https://charts.bitnami.com/bitnami
Expected OutputExpected
"bitnami" has been added to your repositories
This command lists all the chart repositories currently added to your Helm client.
Terminal
helm repo list
Expected OutputExpected
NAME URL bitnami https://charts.bitnami.com/bitnami
This command updates the local cache of charts from all added repositories to get the latest versions.
Terminal
helm repo update
Expected OutputExpected
Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "bitnami" chart repository
Key Concept

If you remember nothing else from this pattern, remember: adding a chart repository lets you easily find and install software packages on Kubernetes.

Common Mistakes
Typing the repository URL incorrectly when adding a repo.
Helm cannot reach the repository and will fail to add it.
Double-check the URL before running 'helm repo add' to ensure it is correct.
Not running 'helm repo update' after adding a new repository.
Your local cache won't have the latest charts, so you might not see or install the newest versions.
Always run 'helm repo update' after adding or changing repositories.
Summary
Use 'helm repo add' to add a new chart repository by specifying its name and URL.
Use 'helm repo list' to see all repositories you have added.
Use 'helm repo update' to refresh your local list of charts from all repositories.