自行发行
获得了 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 chart save ./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
一切都会正常 - 图表就位我尝试过的
ingress-nginx
- 失败helm search repo -l --devel
查看所有可能的图表版本 - 运气不好问题是
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
: 会得到如下输出:
本地仓库看起来像这样:
这有效
helm 注册表登录 acrName.azurecr.io --用户名 usrName --密码 passwd
helm 显示所有 oci://acrName.azurecr.io/helm/repoName --version 版本