tencent cloud


Helm Repository

Last updated: 2022-03-30 10:08:16

    This document describes how to store Helm artifacts in CODING-AR, including how to create a repository and push, pull, and delete artifacts.

    Open CODING-AR

    1. Log in to the CODING Console and click Use Now to go to CODING page.
    2. Click in the upper-right corner to open the project list page and click a project icon to open the project.
    3. In the menu on the left, click Artifact Management.



    Before you begin:

    Create a Package (Optional)

    This section describes how to quickly create a Helm chart. You can skip this section if you are familiar with Helm charts.

    Method 1: create an image locally

    1. In a local directory, create a Helm chart.
      helm create [name]
    2. Package the chart.
      helm package [name]

    Method 2: pull an artifact from Artifact Hub

    Search for a Helm chart and run the download command in a local directory.

    $ helm repo add [Remote Repository Name] [Remote Repository URL]
    $ helm fetch [Helm Chart URL in the Remote Repository>]--version [Version]
    After the commands are successfully run, you can view the artifact locally.

    Configure Authentication Information

    After creating a local artifact, you can push it to the remote repository. Before the push, you need to locally configure the authentication information of the remote repository. You can pull or push an artifact by using Helm + cURL or Helm + CODING Helm plugin as instructed in the Guide.

    The following example uses the CODING Helm plugin:

    Copy and run the command in the guide to install the plugin. Then click Generate configuration from access token, and copy and run the configuration command in the package directory.

    Push an Artifact

    Go to the directory where the Helm chart is stored and run the command in the Guide to push the specified Helm chart to the repository.

    helm push [Package Name.tgz] [Repository Info in the Push Guide]
    After the artifact is pushed successfully, refresh the page to view the latest artifacts.

    Pull an Artifact

    If your artifact repository is updated, run the update command before pulling an artifact.

    helm repo update
    After the update is successful, run the pull command.
    helm fetch [Artifact Info in the pull guide] --version [Version]
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support