问题本身
获得Azure 容器注册表作为图像和图表存储。假设 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 图表保存 ./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
一切正常 - 图表就位
我尝试过的
- 根据网络上的一些理论将存储库名称重命名为 helm/{app} - 失败
- 使用完整描述等重新配置图表根据
ingress-nginx
- 失败 - 执行
helm search repo -l --devel
查看所有可能的图表版本 - 没有运气 - “关闭并再次打开” - 使用不同的组合再次删除和添加存储库 - 失败
- 每次尝试都使用露骨的俚语 - 有点热身,但并不能解决问题
问题是
- Azure ACR 与 Helm 3 完全兼容吗?
- 是否有任何具体的解决方法可以使其与 Helm 3 兼容?
- 搜索功能对图表结构或版本有任何要求吗?
最佳答案
Is Azure ACR fully compatible with Helm 3?
是的,它与 Helm 3 完全兼容。
Is there any specific workaround to make it compatible with Helm 3?
无需执行任何操作,因为第一个问题是肯定的。
Does search functionality have any requirements to chart structure or version?
您需要首先使用命令 az acr helm repo add --name myacr
或 helm repo add myacr https://myacr.azurecr 将存储库添加到本地 helm。 io/helm/v1/repo --username xxxxx --password xxxxxx
,然后运行命令 helm search repo -l
会得到如下输出:
本地存储库如下所示:
关于azure - Helm 3 搜索未显示来自 ACR 的结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66553094/