Helm 3 搜索未显示来自 ACR 的结果

问题描述 投票:0回答:2

自行发行

获得了 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-nginx
    jetstack
    中的所有内容,但没有看到
    myacr
    中的任何内容。 然而,如果我这样做
    pull
    export
    一切都会正常 - 图表就位

我尝试过的

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

问题是

  1. Azure ACR 与 Helm 3 完全兼容吗?
  2. 是否有任何具体的解决方法可以使其与 Helm 3 兼容?
  3. 搜索功能对图表结构或版本有要求吗?
azure kubernetes kubernetes-helm azure-container-registry acr
2个回答
1
投票

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
:

会得到如下输出:

本地仓库看起来像这样:


0
投票

这有效

helm 注册表登录 acrName.azurecr.io --用户名 usrName --密码 passwd

helm 显示所有 oci://acrName.azurecr.io/helm/repoName --version 版本

© www.soinside.com 2019 - 2024. All rights reserved.