Uploading and Downloading a Helm Chart on the Client
CodeArts Artifact can connect to local Helm clients. You may upload your private packages from your local Helm client to self-hosted repos and share them with others, who can download these Helm packages through their clients.
Helm Chart
Helm is a package manager for Kubernetes. Helm Charts enable you to manage and deploy Kubernetes applications.
Constraints
The repository password for a self-hosted repo is account-specific. If you are prompted for a password while using a different account, download the configuration file from the repository's Tutorial tab to obtain it.
Prerequisites
- You have installed the Helm client.
- You have created a Helm repository.
- You have the Download/View permission on the current repository. For details about how to obtain this permission, see Configuring Repository Permissions.
Uploading a Helm Chart from the Client
- Access self-hosted repos using your Huawei Cloud account.
- Select the target Helm repository on the self-hosted repo page.
- Click Tutorial on the right of the page.
- In the displayed dialog box, click Download Guide File to download the repositories.yaml file.

- Upload the Helm chart to the repository.
curl -k -u "{{username}}:{{password}}" -X PUT url/{{filePath}} -T {{localFile}}- file path: path (including the name) of the Helm repository to be uploaded.
- localFile: path (including the name) of the local Helm chart.
- Obtain the values of username, password, and url from the repositories.yaml file downloaded in 4, as shown in the following figure:

Downloading a Helm Chart to the Client
- Access self-hosted repos using your Huawei Cloud account.
- Select the target Helm repository on the self-hosted repo page.
- Click Tutorial on the right of the page.
- In the displayed dialog box, click Download Guide File to download the repositories.yaml file.

- Add a Helm repository.
helm repo add Helm repository ID Helm repository URL --username {{username}} --password {{password}} --insecure-skip-tls-verifyObtain the values of username and password from the downloaded repositories.yaml file in 4. Obtain the Helm repository ID from the red box in the following figure:

- Update the metadata.
helm repo update
- Download the chart.
helm pull Helm repository ID/{{filePath}} --version {{version}} --insecure-skip-tls-verifyObtain the values of username and password from the repositories.yaml file downloaded in 4, as shown in the following figure:

Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot