问题描述
问题本身
有一个 Azure Container Registry 作为图像和图表存储。假设它 myacr.azurecr.io
推送了 8 个不同的图表。据我之前阅读 Azure ACR 能够存储图表并与 Helm 3(版本 3.5.2)兼容。
-
helm repo add myacr https://myacr.azurecr.io/helm/v1/repo --username myusername -password admin123
- 添加了存储库。好的。 -
helm chart save ./my-chart/ myacr.azurecr.io/helm/my-chart:1.0.0
- 图表已保存。好的 -
helm push ./my-chart/ myacr.azurecr.io/helm/my-chart:1.0.0
- 推送。在 Azure 门户中可用。好的。 -
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!⎈
-
helm search repo -l
- 我在列表中看到了ingress-Nginx
和jetstack
中的所有内容,但没有看到myacr
中的所有内容。 然而,如果我执行pull
和export
一切正常 - 图表就位
我的尝试
- 根据网络中的一些理论将 repo 名称重命名为 helm/{app} - 失败
- 使用完整描述等重新配置图表根据{{1}} - 失败
- 执行
ingress-Nginx
以查看所有可能的图表版本 - 没有运气 - “断断续续” - 使用不同的组合再次删除和添加回购 - 失败
- 每次尝试都使用明确的俚语 - 有点热,但不能解决问题
问题是
解决方法
Azure ACR 是否与 Helm 3 完全兼容?
是的,它与 Helm 3 完全兼容。
是否有任何特定的解决方法可以使其与 Helm 3 兼容?
什么都不需要做,因为第一个问题是肯定的。
搜索功能是否对图表结构或 版本?
您需要首先使用命令 az acr helm repo add --name myacr
或 helm repo add myacr https://myacr.azurecr.io/helm/v1/repo --username xxxxx --password xxxxxx
将存储库添加到本地 helm,然后运行命令 helm search repo -l
会得到如下输出:
本地仓库看起来像这样: