Helm repo: Difference between revisions
No edit summary |
|||
Line 14: | Line 14: | ||
=List Repositories Helm is Configured With= | =List Repositories Helm is Configured With= | ||
<syntaxhighlight lang='bash'> | |||
helm repo list | |||
</syntaxhighlight> | |||
=Add a New Repository= | =Add a New Repository= | ||
Line 36: | Line 38: | ||
The command reaches out to remote repositories Helm installation is configured with and gets the latest information about charts. Information is cached locally | The command reaches out to remote repositories Helm installation is configured with and gets the latest information about charts. Information is cached locally | ||
<syntaxhighlight lang='bash'> | |||
helm [--debug] repo update | |||
</syntaxhighlight> | |||
=Find what Versions of a Specific Chart are Available in a Repository= | =Find what Versions of a Specific Chart are Available in a Repository= | ||
Line 44: | Line 48: | ||
=<span id='Remove_a_Repository'></span>Remove a Locally Configured Repository= | =<span id='Remove_a_Repository'></span>Remove a Locally Configured Repository= | ||
<syntaxhighlight lang='bash'> | |||
helm repo remove local | |||
</syntaxhighlight> | |||
=Generate an Index File= | =Generate an Index File= | ||
<syntaxhighlight lang='bash'> | |||
helm repo index <chart-dir> | |||
</syntaxhighlight> | |||
Generates an index from files in the directory specified as argument, which is expected to contain packaged charts. | Generates an index from files in the directory specified as argument, which is expected to contain packaged charts. |
Revision as of 05:06, 9 September 2020
External
Internal
Overview
Revised for Helm 3
Caching repositories locally is useful when installing charts and specifying the chart to be installed using the name of the locally cached repository and the name of the chart. However, charts can be installed directly from the remote repository, without having to add (cache) the repository locally. The repositories are cached locally with helm repo add command, but the cache is not automatically kept up to date in any way, it has to be explicitly updated with helm repo update.
List Repositories Helm is Configured With
helm repo list
Add a New Repository
helm repo add <repository-name> <repository-url> [--username <username>] [--password <password>]
helm repo add dev https://example.com/dev-charts
Note that the repository must expose an index.yaml, otherwise the above command will fail with .../index.yaml 404 Not Found.
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
Update the Local Repository Cache
The command reaches out to remote repositories Helm installation is configured with and gets the latest information about charts. Information is cached locally
helm [--debug] repo update
Find what Versions of a Specific Chart are Available in a Repository
One method is to download (or look on-line) at the repository index and do a text search.
Remove a Locally Configured Repository
helm repo remove local
Generate an Index File
helm repo index <chart-dir>
Generates an index from files in the directory specified as argument, which is expected to contain packaged charts.