Skip to main content

helm托管

托管helm chart

腾讯云容器镜像服务(Tencent Container Registry,TCR)支持托管 Helm Chart,满足用户对云原生应用托管分发的需要。用户可在同个命名空间内同时管理容器镜像及 Helm Chart,实现在业务项目内同时使用容器镜像和 Helm Chart 云原生交付物。

目前仅企业版实例支持托管 Helm Chart,支持使用控制台或 Helm 客户端实现 Chart 的上传及下载。

使用helm上传

  1. 安装helm

    curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
    chmod 700 get_helm.sh
    ./get_helm.sh
    helm plugin install https://github.com/chartmuseum/helm-push
  2. 上传helm命令


    helm repo add $instance-$namespace https://$instance.tencentcloudcr.com/chartrepo/$namespace --username $username --password $instance-token

    # 创建测试helm
    helm create tcr-chart-demo

    # 上传,需要加cm-push,否则会出现 Error: scheme prefix missing from remote (e.g. "oci://") 错误
    helm cm-push tcr-chart-demo $instance-$namespace

    $instance-$namespace 是tke建议的命名规范

参考文档

https://www.tencentcloud.com/zh/document/product/1051/35493?has_map=1