我正在关注this有关如何“将 Helm 图表推送和拉取到 Azure 容器注册表”的指南。
所以我将图表推送到了 ACR。我可以通过 Azure UI 看到它就在那里
az acr repository show \
--name mycontainerregistry \
--repository helm/hello-world
是否有一个存储库 URL,我可以使用它来配置其他人(在本例中为 Flux v2)以从中提取图表?我认为它可能是 https://mycontainerregistry.azurecr.io/helm/v1/repo/index.yaml
,但它没有列出我推送的图表。
我需要做什么才能将图表添加到 index.yaml
,还是应该使用其他 URL?
编辑
我刚刚意识到https://mycontainerregistry.azurecr.io/helm/v1/repo/index.yaml
将显示通过az acr helm push
推送的图表命令。那么也许该 URL 是别的东西?
最佳答案
我使用了以下命令并且它有效:
helm repo add YOUR_ACR_NAME https://YOUR_ACR_NAME.azurecr.io/helm/v1/repo --username YOUR_ACR_NAME --password YOUR_ACR_PASSWORD
结果将类似于:
"YOUR_ACR_NAME " has been added to your repositories
问题是,在此之后我仍然找不到我通过“az acr helm push”添加的所有 Helm chart 。太悲伤了。
关于kubernetes-helm - 添加到 ACR 的 Helm 图表的索引 URL 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65993187/