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

标签 azure kubernetes kubernetes-helm azure-container-registry acr

问题本身

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

enter image description here 以下重现步骤很简单。

  • 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-nginxjetstack 中的所有内容,但没有看到 myacr 中的任何内容在列表中。 然而,如果我pullexport一切正常 - 图表就位
  • 我尝试过的

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

    问题是

    1. Azure ACR 与 Helm 3 完全兼容吗?
    2. 是否有任何具体的解决方法可以使其与 Helm 3 兼容?
    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 myacrhelm repo add myacr https://myacr.azurecr 将存储库添加到本地 helm。 io/helm/v1/repo --username xxxxx --password xxxxxx,然后运行命令 helm search repo -l 会得到如下输出:

    enter image description here

    本地存储库如下所示:

    enter image description here

    关于azure - Helm 3 搜索未显示来自 ACR 的结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66553094/

    相关文章:

    IIS 网站的 Powershell 脚本(SMTP 中继)

    azure - 通过 TLS 从 Azure Function 使用 MQTT 触发器时出现问题

    Azure 电子邮件测试工具

    kubernetes - 如何为启动KubernetesPodOperator的Kubernetes Airflow Worker Pod创建kubeconfig

    Kubernetes 客户子域动态绑定(bind)

    linux - google-chrome 无法移动到新的命名空间

    azure - 如何使用同一根模块中的输出值来创建另一个资源

    kubernetes - 我可以暂停 kubectl apply 上的类型检查吗?

    kubernetes - 是否可以在内部 Helm chart 的values.yaml中使用全局变量

    kubernetes - 安装ingress-nginx helm chart出错