将 Helm 图表推送和提取到 Azure 容器注册表Push and pull Helm charts to an Azure container registry

若要快速地管理和部署适用于 Kubernetes 的应用程序,可以使用开放源代码 Helm 包管理器To quickly manage and deploy applications for Kubernetes, you can use the open-source Helm package manager. 在使用 Helm 的情况下,应用程序包会定义为图表,这些图表会收集并存储到 Helm 图表存储库中。With Helm, application packages are defined as charts, which are collected and stored in a Helm chart repository.

本文介绍如何使用 Helm 3 或 Helm 2 安装,在 Azure 容器注册表中托管 Helm 图表存储库。This article shows you how to host Helm charts repositories in an Azure container registry, using either a Helm 3 or Helm 2 installation. 在许多情况下,你需要为你开发的应用程序生成并上传自己的图表。In many scenarios, you would build and upload your own charts for the applications you develop. 有关如何生成自己的 Helm 图表的详细信息,请参阅图表模板开发人员指南For more information on how to build your own Helm charts, see the Chart Template Developer's Guide. 还可以从另一个 Helm 存储库存储现有的 Helm 图表。You can also store an existing Helm chart from another Helm repo.

重要

对 Azure 容器注册表中的 Helm 图表的支持目前以预览版提供。Support for Helm charts in Azure Container Registry is currently in preview. 需同意补充的使用条款才能使用预览版。Previews are made available to you on the condition that you agree to the supplemental terms of use. 在正式版 (GA) 推出之前,此功能的某些方面可能会有所更改。Some aspects of this feature may change prior to general availability (GA).

要使用 Helm 3 还是 Helm 2?Helm 3 or Helm 2?

若要存储、管理和安装 Helm 图表,请使用 Helm 客户端和 Helm CLI。To store, manage, and install Helm charts, you use a Helm client and the Helm CLI. Helm 客户端的主要版本包括 Helm 3 和 Helm 2。Major releases of the Helm client include Helm 3 and Helm 2. Helm 3 支持新图表格式,且不再安装 Tiller 服务器端组件。Helm 3 supports a new chart format and no longer installs the Tiller server-side component. 有关版本差异的详细信息,请参阅版本常见问题解答For details on the version differences, see the version FAQ. 如果以前已部署了 Helm 2 图表,请参阅将 Helm v2 迁移到 v3If you've previously deployed Helm 2 charts, see Migrating Helm v2 to v3.

可以使用 Helm 3 或 Helm 2,通过特定于每个版本的工作流在 Azure 容器注册表中托管 Helm 图表:You can use either Helm 3 or Helm 2 to host Helm charts in Azure Container Registry, with workflows specific to each version:

其他信息Additional information

  • 在大多数情况下,我们建议结合本机 helm chart 命令使用 Helm 3 工作流,将图表作为 OCI 项目进行管理。For most scenarios, we recommend using the Helm 3 workflow with native helm chart commands to manage charts as OCI artifacts.
  • 从 Helm 3 开始,为了与 Helm 2 客户端和图表格式兼容,支持 az acr helm 命令。As of Helm 3, az acr helm commands are supported for compatibility with the Helm 2 client and chart format. 目前尚未计划将来开发这些命令。Future development of these commands isn't currently planned. 请参阅产品路线图See the product roadmap.
  • 不能使用 Azure 门户查看或管理 Helm 2 图表。Helm 2 charts cannot be viewed or managed using the Azure portal.

使用 Helm 3 客户端Use the Helm 3 client

先决条件Prerequisites

  • Azure 订阅中有一个 Azure 容器注册表。****An Azure container registry in your Azure subscription. 如果需要,请使用 Azure 门户Azure CLI 创建一个注册表。If needed, create a registry using the Azure portal or the Azure CLI.
  • Helm 客户端 3.1.0 或更高版本 - 运行 helm version 可查看当前版本。****Helm client version 3.1.0 or later - Run helm version to find your current version. 有关如何安装和升级 Helm 的详细信息,请参阅安装 HelmFor more information on how to install and upgrade Helm, see Installing Helm.
  • 要在其中安装 Helm 图表的 Kubernetes 群集。****A Kubernetes cluster where you will install a Helm chart. 如果需要,请创建一个 Azure Kubernetes 服务群集If needed, create an Azure Kubernetes Service cluster.
  • Azure CLI 2.0.71 或更高版本 - 运行 az --version 可查看版本。****Azure CLI version 2.0.71 or later - Run az --version to find the version. 如果需要进行安装或升级,请参阅安装 Azure CLIIf you need to install or upgrade, see Install Azure CLI.

高级工作流High level workflow

使用 Helm 3 可以:****With Helm 3 you:

  • 在 Azure 容器注册表中创建一个或多个 Helm 存储库Can create one or more Helm repositories in an Azure container registry
  • 将 Helm 3 图表作为 OCI 项目存储在注册表中。Store Helm 3 charts in a registry as OCI artifacts. 目前,Helm 3 对 OCI 的支持是实验性的。**Currently, Helm 3 support for OCI is experimental.
  • 使用 helm registry login 命令向注册表进行身份验证。Authenticate with your registry using the helm registry login command.
  • 在 Helm CLI 中使用 helm chart 命令在注册表中推送、提取和管理 Helm 图表Use helm chart commands in the Helm CLI to push, pull, and manage Helm charts in a registry
  • 使用 helm install 从本地存储库缓存将图表安装到 Kubernetes 群集。Use helm install to install charts to a Kubernetes cluster from a local repository cache.

有关示例,请参阅以下部分。See the following sections for examples.

启用 OCI 支持Enable OCI support

设置以下环境变量,以在 Helm 3 客户端中启用 OCI 支持。Set the following environment variable to enable OCI support in the Helm 3 client. 此支持目前是实验性的。Currently, this support is experimental.

export HELM_EXPERIMENTAL_OCI=1

创建示例图表Create a sample chart

使用以下命令创建测试图表:Create a test chart using the following commands:

mkdir helmtest

cd helmtest
helm create hello-world

在此简单示例中,请将目录切换到 templates 文件夹,并先删除其中的内容:As a basic example, change directory to the templates folder and first delete the contents there:

cd hello-world/templates
rm -rf *

templates 文件夹中,创建一个名为 configmap.yaml 的文件,其中包含以下内容:In the templates folder, create a file called configmap.yaml with the following contents:

cat <<EOF > configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: hello-world-configmap
data:
  myvalue: "Hello World"
EOF

有关创建和运行此示例的详细信息,请参阅 Helm 文档中的入门For more about creating and running this example, see Getting Started in the Helm Docs.

将图表保存到本地注册表缓存Save chart to local registry cache

将目录切换到 hello-world 子目录。Change directory to the hello-world subdirectory. 然后,运行 helm chart save 以在本地保存图表的副本,并使用注册表的完全限定名称(全小写)以及目标存储库和标记创建别名。Then, run helm chart save to save a copy of the chart locally and also create an alias with the fully qualified name of the registry (all lowercase) and the target repository and tag.

在以下示例中,注册表名称为 mycontainerregistry,目标存储库为 hello-world,目标图表标记为 v1,但要根据你的环境替换值:** ** **In the following example, the registry name is mycontainerregistry, the target repo is hello-world, and the target chart tag is v1, but substitute values for your environment:

cd ..
helm chart save . hello-world:v1
helm chart save . mycontainerregistry.azurecr.cn/helm/hello-world:v1

运行 helm chart list 确认已将图表保存到本地注册表缓存中。Run helm chart list to confirm you saved the charts in the local registry cache. 输出类似于:Output is similar to:

REF                                                      NAME            VERSION DIGEST  SIZE            CREATED
hello-world:v1                                           hello-world       0.1.0   5899db0 3.2 KiB        2 minutes 
mycontainerregistry.azurecr.cn/helm/hello-world:v1       hello-world       0.1.0   5899db0 3.2 KiB        2 minutes

向注册表进行身份验证Authenticate with the registry

在 Helm 3 CLI 中运行 helm registry login 命令,以使用适合你的方案的凭据向注册表进行身份验证Run the helm registry login command in the Helm 3 CLI to authenticate with the registry using credentials appropriate for your scenario.

例如,创建一个对注册表拥有提取和推送权限的 Azure Active Directory 服务主体(AcrPush 角色)。For example, create an Azure Active Directory service principal with pull and push permissions (AcrPush role) to the registry. 然后向 helm registry login 提供服务主体凭据。Then supply the service principal credentials to helm registry login. 以下示例使用环境变量提供密码:The following example supplies the password using an environment variable:

echo $spPassword | helm registry login mycontainerregistry.azurecr.cn \
  --username <service-principal-id> \
  --password-stdin

向 Azure 容器注册表推送图表Push chart to Azure Container Registry

在 Helm 3 CLI 中运行 helm chart push 命令,以将图表推送到完全限定的目标存储库:Run the helm chart push command in the Helm 3 CLI to push the chart to the fully qualified target repository:

helm chart push mycontainerregistry.azurecr.cn/helm/hello-world:v1

成功推送后,输出将类似于:After a successful push, output is similar to:

The push refers to repository [mycontainerregistry.azurecr.cn/helm/hello-world]
ref:     mycontainerregistry.azurecr.cn/helm/hello-world:v1
digest:  5899db028dcf96aeaabdadfa5899db025899db025899db025899db025899db02
size:    3.2 KiB
name:    hello-world
version: 0.1.0

在存储库中列出图表List charts in the repository

与 Azure 容器注册表中存储的映像一样,可以使用 az acr repository 命令来显示托管图表、图表标记和清单的存储库。As with images stored in an Azure container registry, you can use az acr repository commands to show the repositories hosting your charts, and chart tags and manifests.

例如,运行 az acr repository show 可以查看在上一步骤中创建的存储库的属性:For example, run az acr repository show to see the properties of the repo you created in the previous step:

az acr repository show \
  --name mycontainerregistry \
  --repository helm/hello-world

输出类似于:Output is similar to:

{
  "changeableAttributes": {
    "deleteEnabled": true,
    "listEnabled": true,
    "readEnabled": true,
    "writeEnabled": true
  },
  "createdTime": "2020-03-20T18:11:37.6701689Z",
  "imageName": "helm/hello-world",
  "lastUpdateTime": "2020-03-20T18:11:37.7637082Z",
  "manifestCount": 1,
  "registry": "mycontainerregistry.azurecr.cn",
  "tagCount": 1
}

运行 az acr repository show-manifests 命令,以查看存储库中存储的图表的详细信息。Run the az acr repository show-manifests command to see details of the chart stored in the repository. 例如:For example:

az acr repository show-manifests \
  --name mycontainerregistry \
  --repository helm/hello-world --detail

输出(在此示例中已缩略)显示 configMediaTypeapplication/vnd.cncf.helm.config.v1+jsonOutput, abbreviated in this example, shows a configMediaType of application/vnd.cncf.helm.config.v1+json:

[
  {
    [...]
    "configMediaType": "application/vnd.cncf.helm.config.v1+json",
    "createdTime": "2020-03-20T18:11:37.7167893Z",
    "digest": "sha256:0c03b71c225c3ddff53660258ea16ca7412b53b1f6811bf769d8c85a1f0663ee",
    "imageSize": 3301,
    "lastUpdateTime": "2020-03-20T18:11:37.7167893Z",
    "mediaType": "application/vnd.oci.image.manifest.v1+json",
    "tags": [
      "v1"
    ]

将图表提取到本地缓存Pull chart to local cache

若要将某个 Helm 图表安装到 Kubernetes,该图表必须位于本地缓存中。To install a Helm chart to Kubernetes, the chart must be in the local cache. 在此示例中,请先运行 helm chart remove 以删除名为 mycontainerregistry.azurecr.cn/helm/hello-world:v1 的现有本地图表:In this example, first run helm chart remove to remove the existing local chart named mycontainerregistry.azurecr.cn/helm/hello-world:v1:

helm chart remove mycontainerregistry.azurecr.cn/helm/hello-world:v1

运行 helm chart pull 将 Azure 容器注册表中的图表下载到本地缓存:Run helm chart pull to download the chart from the Azure container registry to your local cache:

helm chart pull mycontainerregistry.azurecr.cn/helm/hello-world:v1

导出 Helm 图表Export Helm chart

若要进一步处理图表,请使用 helm chart export 将其导出到本地目录。To work further with the chart, export it to a local directory using helm chart export. 例如,将提取的图表导出到 install 目录:For example, export the chart you pulled to the install directory:

helm chart export mycontainerregistry.azurecr.cn/helm/hello-world:v1 \
  --destination ./install

若要查看存储库中已导出的图表的信息,请在图表所导出到的目录中运行 helm show chart 命令。To view information for the exported chart in the repo, run the helm show chart command in the directory where you exported the chart.

cd install
helm show chart hello-world

Helm 将返回有关最新版本的图表的详细信息,如以下示例输出中所示:Helm returns detailed information about the latest version of your chart, as shown in the following sample output:

apiVersion: v2
appVersion: 1.16.0
description: A Helm chart for Kubernetes
name: hello-world
type: application
version: 0.1.0    

安装 Helm 图表Install Helm chart

运行 helm install 来安装已提取到本地缓存且已导出的 Helm 图表。Run helm install to install the Helm chart you pulled to the local cache and exported. 指定版本名称(例如 myhelmtest)或传递 --generate-name 参数。**Specify a release name such as myhelmtest, or pass the --generate-name parameter. 例如:For example:

helm install myhelmtest ./hello-world

成功安装图表后,输出将类似于:Output after successful chart installation is similar to:

NAME: myhelmtest
LAST DEPLOYED: Fri Mar 20 14:14:42 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None

若要验证安装,请运行 helm get manifest 命令。To verify the installation, run the helm get manifest command. 该命令将返回 configmap.yaml 模板文件中的 YAML 数据。The command returns the YAML data in your configmap.yaml template file.

运行 helm uninstall 以卸载群集上的图表版本:Run helm uninstall to uninstall the chart release on your cluster:

helm uninstall myhelmtest

从存储库删除 Helm 图表Delete a Helm chart from the repository

若要从存储库中删除图表,请使用 az acr repository delete 命令。To delete a chart from the repository, use the az acr repository delete command. 运行以下命令,并在出现提示时确认操作:Run the following command and confirm the operation when prompted:

az acr repository delete --name mycontainerregistry --image helm/hello-world:v1

使用 Helm 2 客户端Use the Helm 2 client

先决条件Prerequisites

  • Azure 订阅中有一个 Azure 容器注册表。****An Azure container registry in your Azure subscription. 如果需要,请使用 Azure 门户Azure CLI 创建一个注册表。If needed, create a registry using the Azure portal or the Azure CLI.
  • Helm 客户端版本 2.11.0(而不是 RC 版本)或更高版本**** - 运行 helm version 以查找当前版本。Helm client version 2.11.0 (not an RC version) or later - Run helm version to find your current version. 还需要在 Kubernetes 群集中初始化的一个 Helm 服务器 (Tiller)。You also need a Helm server (Tiller) initialized within a Kubernetes cluster. 如果需要,请创建一个 Azure Kubernetes 服务群集If needed, create an Azure Kubernetes Service cluster. 有关如何安装和升级 Helm 的详细信息,请参阅安装 HelmFor more information on how to install and upgrade Helm, see Installing Helm.
  • Azure CLI 版本 2.0.46 或更高版本 ****- 运行 az --version 查找版本。Azure CLI version 2.0.46 or later - Run az --version to find the version. 如果需要进行安装或升级,请参阅安装 Azure CLIIf you need to install or upgrade, see Install Azure CLI.

高级工作流High level workflow

使用 Helm 2 可以:****With Helm 2 you:

  • 将 Azure 容器注册表配置为单个 Helm 图表存储库。**Configure your Azure container registry as a single Helm chart repository. 当你在存储库中添加或删除图表时,Azure 容器注册表会管理索引定义。Azure Container Registry manages the index definition as you add and remove charts to the repository.
  • 通过 Azure CLI 向 Azure 容器注册表进行身份验证,然后,系统会使用注册表 URI 和凭据自动更新 Helm 客户端。Authenticate with your Azure container registry via the Azure CLI, which then updates your Helm client automatically with the registry URI and credentials. 无需手动指定此注册表信息,以免凭据在命令历史记录中公开。You don't need to manually specify this registry information, so the credentials aren't exposed in the command history.
  • 在 Azure CLI 中使用 az acr helm 命令可将 Azure 容器注册表添加为 Helm 图表存储库,并可推送和管理图表。Use the az acr helm commands in the Azure CLI to add your Azure container registry as a Helm chart repository, and to push and manage charts. 这些 Azure CLI 命令包装 Helm 2 客户端命令。These Azure CLI commands wrap Helm 2 client commands.
  • 将 Azure 容器注册表中的图表存储库添加到本地 Helm 存储库索引,以支持图表搜索。Add the chart repository in your Azure container registry to your local Helm repo index, supporting chart search.
  • 使用 helm install 从本地存储库缓存将图表安装到 Kubernetes 群集。Use helm install to install charts to a Kubernetes cluster from a local repository cache.

有关示例,请参阅以下部分。See the following sections for examples.

将存储库添加到 Helm 客户端Add repository to Helm client

使用 az acr helm repo add 命令将 Azure 容器注册表 Helm 图表存储库添加到 Helm 客户端。Add your Azure Container Registry Helm chart repository to your Helm client using the az acr helm repo add command. 此命令将为 Helm 客户端使用的 Azure 容器注册表获取身份验证令牌。This command gets an authentication token for your Azure container registry that is used by the Helm client. 身份验证令牌的有效期为 3 小时。The authentication token is valid for 3 hours. 类似于 docker login,可以在以后的 CLI 会话中运行此命令,以对 Helm 客户端的 Azure 容器注册表 Helm 图表存储库进行身份验证:Similar to docker login, you can run this command in future CLI sessions to authenticate your Helm client with your Azure Container Registry Helm chart repository:

az acr helm repo add --name mycontainerregistry

将示例图表添加到存储库Add a sample chart to the repository

首先,在 ~/acr-helm** 中创建一个本地目录,然后下载现有的 stable/wordpress** 图表:First, create a local directory at ~/acr-helm, then download the existing stable/wordpress chart:

mkdir ~/acr-helm && cd ~/acr-helm
helm repo update
helm fetch stable/wordpress

键入 ls 列出已下载的图表,并记下文件名中包含的 Wordpress 版本。Type ls to list the downloaded chart, and note the Wordpress version included in the filename. helm fetch stable/wordpress 命令未指定特定版本,因此会获取最新** 版本。The helm fetch stable/wordpress command didn't specify a particular version, so the latest version was fetched. 在以下示例输出中,Wordpress 图表的版本为 8.1.0**:In the following example output, the Wordpress chart is version 8.1.0:

wordpress-8.1.0.tgz

在 Azure CLI 中使用 az acr helm push 命令将图表推送到 Azure 容器注册表中的 Helm 图表存储库。Push the chart to your Helm chart repository in Azure Container Registry using the az acr helm push command in the Azure CLI. 指定在上一步骤中下载的 Helm 图表的名称,例如 wordpress-8.1.0.tgz**:Specify the name of your Helm chart downloaded in the previous step, such as wordpress-8.1.0.tgz:

az acr helm push --name mycontainerregistry wordpress-8.1.0.tgz

片刻之后,Azure CLI 将报告图表已保存,如以下示例输出中所示:After a few moments, the Azure CLI reports that your chart is saved, as shown in the following example output:

{
  "saved": true
}

在存储库中列出图表List charts in the repository

若要使用在上一步中上传的图表,必须更新本地 Helm 存储库索引。To use the chart uploaded in the previous step, the local Helm repository index must be updated. 可以为 Helm 客户端中的存储库重新创建索引,或使用 Azure CLI 更新存储库索引。You can reindex the repositories in the Helm client, or use the Azure CLI to update the repository index. 每次将图表添加到存储库时,必须完成此步骤:Each time you add a chart to your repository, this step must be completed:

az acr helm repo add --name mycontainerregistry

如果将图表存储在存储库中并在本地提供更新的索引,可以使用常规 Helm 客户端命令来搜索或安装。With a chart stored in your repository and the updated index available locally, you can use the regular Helm client commands to search or install. 若要查看存储库中的所有图表,请使用 helm search 命令,并提供自己的 Azure 容器注册表名称:To see all the charts in your repository, use the helm search command, providing your own Azure Container Registry name:

helm search mycontainerregistry

会列出上一步中推送的 Wordpress 图表,如以下示例输出中所示:The Wordpress chart pushed in the previous step is listed, as shown in the following example output:

NAME                  CHART VERSION    APP VERSION    DESCRIPTION
helmdocs/wordpress    8.1.0           5.3.2          Web publishing platform for building blogs and websites.

此外,还可以通过 Azure CLI 使用 az acr helm list 命令列出图表:You can also list the charts with the Azure CLI, using az acr helm list:

az acr helm list --name mycontainerregistry

显示 Helm 图表的信息Show information for a Helm chart

若要查看存储库中特定图表的信息,可以使用 helm inspect 命令。To view information for a specific chart in the repo, you can use the helm inspect command.

helm inspect mycontainerregistry/wordpress

如果没有版本号,将使用最新** 版本。When no version number is provided, the latest version is used. Helm 将返回有关图表的详细信息,如以下精简示例输出中所示:Helm returns detailed information about your chart, as shown in the following condensed example output:

apiVersion: v1
appVersion: 5.3.2
description: Web publishing platform for building blogs and websites.
engine: gotpl
home: http://www.wordpress.com/
icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png
keywords:
- wordpress
- cms
- blog
- http
- web
- application
- php
maintainers:
- email: containers@bitnami.com
  name: Bitnami
name: wordpress
sources:
- https://github.com/bitnami/bitnami-docker-wordpress
version: 8.1.0
[...]

此外,还可以使用 Azure CLI az acr helm show 命令显示图表的信息。You can also show the information for a chart with the Azure CLI az acr helm show command. 同样,默认情况下会返回图表的最新** 版本。Again, the latest version of a chart is returned by default. 可以追加 --version 以列出特定版本的图表,例如 8.1.0**:You can append --version to list a specific version of a chart, such as 8.1.0:

az acr helm show --name mycontainerregistry wordpress

从存储库安装 Helm 图表Install a Helm chart from the repository

通过指定存储库名称和图表名称来安装存储库中的 Helm 图表。The Helm chart in your repository is installed by specifying the repository name and the chart name. 使用 Helm 客户端安装 Wordpress 图表:Use the Helm client to install the Wordpress chart:

helm install mycontainerregistry/wordpress

提示

如果推送到 Azure 容器注册表 Helm 图表存储库,稍后在新的 CLI 会话中返回,本地 Helm 客户端需要更新的身份验证令牌。If you push to your Azure Container Registry Helm chart repository and later return in a new CLI session, your local Helm client needs an updated authentication token. 若要获取新的身份验证令牌,请使用 az acr helm repo add 命令。To obtain a new authentication token, use the az acr helm repo add command.

会在安装过程中完成以下步骤:The following steps are completed during the install process:

  • Helm 客户端将搜索本地存储库索引。The Helm client searches the local repository index.
  • 会从 Azure 容器注册表存储库下载相应的图表。The corresponding chart is downloaded from the Azure Container Registry repository.
  • 使用 Tiller 在 Kubernetes 群集中部署图表。The chart is deployed using the Tiller in your Kubernetes cluster.

在安装过程中,请按照命令输出中的说明查看 WorPress URL 和凭据。As the installation proceeds, follow the instructions in the command output to see the WorPress URLs and credentials. 还可以运行 kubectl get pods 命令来查看通过 Helm 图表部署的 Kubernetes 资源:You can also run the kubectl get pods command to see the Kubernetes resources deployed through the Helm chart:

NAME                                    READY   STATUS    RESTARTS   AGE
wordpress-1598530621-67c77b6d86-7ldv4   1/1     Running   0          2m48s
wordpress-1598530621-mariadb-0          1/1     Running   0          2m48s
[...]

从存储库删除 Helm 图表Delete a Helm chart from the repository

若要从存储库中删除图表,请使用 az acr helm delete 命令。To delete a chart from the repository, use the az acr helm delete command. 指定图表的名称(例如 wordpress),以及要删除的版本(例如 8.1.0)** **。Specify the name of the chart, such as wordpress, and the version to delete, such as 8.1.0.

az acr helm delete --name mycontainerregistry wordpress --version 8.1.0

如果想要删除已命名图表的所有版本,请忽略 --version 参数。If you wish to delete all versions of the named chart, leave out the --version parameter.

运行 helm search 时,图表将继续返回。The chart continues to be returned when you run helm search. 同样,Helm 客户端不会自动更新存储库中可用图表的列表。Again, the Helm client doesn't automatically update the list of available charts in a repository. 若要更新 Helm 客户端存储库索引,请再次使用 az acr helm repo add 命令:To update the Helm client repo index, use the az acr helm repo add command again:

az acr helm repo add --name mycontainerregistry

后续步骤Next steps