Azure 头盔3搜索未显示来自ACR的结果
发行本身 获得了一个Azure容器注册表作为图像和图表存储。假设它Azure 头盔3搜索未显示来自ACR的结果,azure,kubernetes,kubernetes-helm,azure-container-registry,acr,Azure,Kubernetes,Kubernetes Helm,Azure Container Registry,Acr,发行本身 获得了一个Azure容器注册表作为图像和图表存储。假设它myacr.azurecr.io,按下8个不同的图表。据我之前所知,Azure ACR能够存储图表,并与头盔3(版本3.5.2)兼容 以下复制步骤很简单 helm repo添加myacrhttps://myacr.azurecr.io/helm/v1/repo --用户名myusername-密码admin123-添加了回购协议。嗯 头盔图表保存。/my chart/myacr.azurecr.io/helm/my chart:
myacr.azurecr.io
,按下8个不同的图表。据我之前所知,Azure ACR能够存储图表,并与头盔3(版本3.5.2)兼容
以下复制步骤很简单
helm repo添加myacrhttps://myacr.azurecr.io/helm/v1/repo --用户名myusername-密码admin123
-添加了回购协议。嗯头盔图表保存。/my chart/myacr.azurecr.io/helm/my chart:1.0.0
-图表保存。嗯掌舵推进。/我的图表/myacr.azurecr.io/helm/mychart:1.0.0
-推进。在Azure门户中提供。嗯掌舵回购更新
-这里会出什么问题?正如所料。嗯helm search repo-l
-我在列表中看到了ingress nginx和jetstack
的所有内容,但没有看到myacr
的任何内容。
然而,如果我做拉
和导出
的话,一切都很好——图表已经准备好了- 根据web中的一些理论将repo名称重命名为helm/{app}失败
- 根据
重新配置带有完整说明的e.t.c.图表-失败ingress nginx
- 执行
查看所有可能的图表版本-运气不好helm search repo-l--devel
- “反复开关”-以不同组合再次删除和添加回购-失败
- 每一次尝试都使用明确的俚语,这会让人感到温暖,但并不能解决问题
az acr helm repo add--name myacr
或helm repo add myacr将repo添加到本地掌舵人https://myacr.azurecr.io/helm/v1/repo --用户名xxxxx——密码xxxxxx
,然后运行命令helm search repo-l
,得到如下输出:
本地回购协议如下所示:
我的坏消息-我没有提到有问题的步骤(将进行编辑),但我当然添加了回购协议。在此回答之后,将其删除,并添加带有凭据和不带凭据的内容。仍然是这个列表中的空图表列表。我看到了ingress nginx和jetstack的所有图表。还尝试了
helm search repo-l--devel
以包括所有现有版本。不走运,谢谢anyway@ArtemFomin如何将图表推送到ACR?您是否使用Azure CLI并检查ACR是否已包含图表?否。没有Azure CLI。仅使用头盔工具<代码>舵保存..,然后舵推..
为described@ArtemFomin你有没有检查这些图表是否在ACR中?当然有。它们位于Azure portal中的ACR中,ACR将它们识别为头盔图表。因此它看起来像Helm search
从远程repo中提取index.yaml文件,将其保存在本地(在~/.cache/Helm/repository),并基于保存的索引文件进行搜索。看起来头盔图表推送
不会更新index.yaml。从我阅读的关于新的符合OCI的helm Repo的文档来看,它们似乎正在完全远离index.yaml文件。这就解释了为什么helm search不以这种方式工作,而是在执行az acr helm push
时工作(因为az cli显式地重新生成index.yaml).New helm search必须检查~/.cache/helm/registry/cache/index.json
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!⎈