3

问题本身

获得一个Azure 容器注册表作为图像和图表存储。假设它myacr.azurecr.io推送了 8 个不同的图表。据我之前阅读,Azure ACR 能够存储图表并与Helm 3版本 3.5.2)兼容。

在此处输入图像描述 以下重现步骤很简单。

  1. helm repo add myacr https://myacr.azurecr.io/helm/v1/repo --username myusername -password admin123- 回购添加。好的。
  2. helm chart save ./my-chart/ myacr.azurecr.io/helm/my-chart:1.0.0- 图表已保存。好的
  3. helm push ./my-chart/ myacr.azurecr.io/helm/my-chart:1.0.0- 推。在 Azure 门户中可用。好的。
  4. helm repo update- 这里可能出了什么问题?正如预期的那样。好的
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "ingress-nginx" chart repository
...Successfully got an update from the "jetstack" chart repository
...Successfully got an update from the "myacr" chart repository
Update Complete. ⎈Happy Helming!⎈
  1. helm search repo -l- 我看到列表中的所有内容ingress-nginxjetstack但没有看到任何内容myacr。然而,如果我这样做pull并且export一切正常 - 图表就位

我试过的

  • 根据网络上的一些理论将 repo 名称重命名为 helm/{app} - 失败
  • 根据 -重新配置带有完整描述等的图表ingress-nginx- 失败
  • 执行helm search repo -l --devel以查看所有可能的图表版本 - 不走运
  • “开关再打开” - 使用不同的组合再次删除和添加 repo - 失败
  • 每次尝试都使用明确的俚语 - 有点热身,但不能解决问题

问题是

  1. Azure ACR 是否与 Helm 3 完全兼容?
  2. 是否有任何特定的解决方法可以使其与 Helm 3 兼容?
  3. 搜索功能是否对图表结构或版本有任何要求?
4

1 回答 1

1

Azure ACR 是否与 Helm 3 完全兼容?

是的,它与 Helm 3 完全兼容。

是否有任何特定的解决方法可以使其与 Helm 3 兼容?

什么都不需要做,因为第一个问题是肯定的。

搜索功能是否对图表结构或版本有任何要求?

您需要首先使用命令az acr helm repo add --name myacr或将 repo 添加到本地 helm helm repo add myacr https://myacr.azurecr.io/helm/v1/repo --username xxxxx --password xxxxxx,然后运行命令获得如下输出helm search repo -l

在此处输入图像描述

本地仓库如下所示:

在此处输入图像描述

于 2021-03-10T02:35:27.397 回答