Manage Helm repository¶
The Helm repository is a repository for storing and publishing Charts. The Helm application module supports HTTP(s) protocol to access Chart packages in the repository. By default, the system has 4 built-in Helm registrys as shown in the table below to meet common needs in the production process of enterprises.
registry | Description | Example |
---|---|---|
partner | Various high-quality features provided by ecological partners Chart | tidb |
system | Chart that must be relied upon by system core functional components and some advanced functions. For example, insight-agent must be installed to obtain cluster monitoring information | Insight |
addon | Common Chart in business scenarios | cert-manager |
community | The most popular open source components in the Kubernetes community Chart | Istio |
In addition to the above preset repositories, you can also add third-party Helm repositories yourself. This article will introduce how to add and update third-party Helm repositories.
Prerequisites¶
-
Container management platform connected to Kubernetes cluster or created Kubernetes cluster, and can access the UI interface of the cluster
-
Completed a Namespace Creation, User Creation, and created a Grant
NS Admin
or higher permissions, please refer to Namespace Authorization for details. -
If using a private registry, the current operating user should have read and write permissions to the private registry.
Introduce third-party Helm repository¶
The following takes the public container registry of Kubevela as an example to introduce and manage the Helm registry.
-
Find the cluster that needs to be imported into the third-party Helm registry, click the cluster name, and enter
Cluster Details
. -
In the left navigation bar, click
Helm Application
->Helm registry
to enter the Helm registry page. -
Click the
Create registry
button on the Helm registry page to enter the Create registry page, and configure relevant parameters according to the table below.- registry name: Set the registry name. Up to 63 characters, can only contain lowercase letters, numbers and separator
-
, and must start and end with lowercase letters or numbers, such as kubevela - registry address: the http(s) address used to point to the target Helm registry. For example https://charts.kubevela.net/core
- Authentication method: The method used for identity verification after connecting to the registry address. For public repositories, you can choose
None
, private repositories need to enter username/password for identity verification - Tags: Add tags for this Helm repository. For example key: repo4; value: Kubevela
- Annotations: Add annotations to the Helm repository. For example key: repo4; value: Kubevela
- Description: Add a description for this Helm repository. Example: This is a Kubevela public Helm repository
- registry name: Set the registry name. Up to 63 characters, can only contain lowercase letters, numbers and separator
-
Click
OK
to complete the creation of the Helm repository. The page will automatically jump to the list of Helm repositories.
Update the Helm repository¶
When the address information of the Helm registry changes, the address, authentication method, label, annotation, and description information of the Helm registry can be updated.
-
Find the cluster where the registry to be updated is located, click the cluster name, and enter
Cluster Details
. -
In the left navigation bar, click
Helm Application
->Helm registry
to enter the Helm registry list page. -
Find the Helm repository that needs to be updated on the repository list page, click the
⋮
button on the right side of the list, and clickUpdate
in the pop-up menu. -
Update on the
Edit Helm Repository
page, and clickOK
when finished. -
Return to the Helm registry list, and the screen prompts that the update is successful.
Delete the Helm repository¶
In addition to importing and updating registrys, you can also delete unnecessary registrys, including system preset registrys and third-party registrys.
-
Find the cluster where the registry to be deleted is located, click the cluster name, and enter
Cluster Details
. -
In the left navigation bar, click
Helm Application
->Helm registry
to enter the Helm registry list page. -
Find the Helm repository that needs to be updated on the repository list page, click the
⋮
button on the right side of the list, and clickDelete
in the pop-up menu. -
Enter the registry name to confirm, and click
Delete
. -
Return to the list of Helm repositories, and the screen prompts that the deletion is successful.