Reputation: 8978
I'm following this guide on how to "Push and pull Helm charts to an Azure container registry".
So I've pushed a chart to ACR. I can see that it's there, both via the Azure UI and
az acr repository show \
--name mycontainerregistry \
--repository helm/hello-world
Is there a repository URL that I can use to configure others (in this case Flux v2) to pull charts from? I thought it might be https://mycontainerregistry.azurecr.io/helm/v1/repo/index.yaml
, but it doesn't list the chart that I pushed.
What do I have to do to add my charts to the index.yaml
, or should I use another URL?
Edit
I just realized that https://mycontainerregistry.azurecr.io/helm/v1/repo/index.yaml
will show the charts pushed via az acr helm push
commands. So maybe that URL is something else?
Upvotes: 2
Views: 4781
Reputation: 2197
I used the following command and it works:
helm repo add YOUR_ACR_NAME https://YOUR_ACR_NAME.azurecr.io/helm/v1/repo --username YOUR_ACR_NAME --password YOUR_ACR_PASSWORD
The result will be something like:
"YOUR_ACR_NAME " has been added to your repositories
The problem is, after this I still cannot find all helm charts I added by "az acr helm push". So sad.
Upvotes: 2
Reputation: 31452
Actually, you can use the command helm repo add
to add the Azure Container Registry as a repository to the helm, and then you can pull the charts from the ACR. And all the charts in the ACR named myacr.azurecr.io/helm/chartname
and it means you will pull the charts from the ACR. The name decides where the chart pulls from.
For example, you add a repo with the command here:
helm repo add technosophos https://technosophos.github.io/tscharts
and you can show the repo like this:
then you can pull charts from this repo:
You can do the things like this with ACR. And helm will help you update the index of the repo. You don't need to do it yourself.
Upvotes: 0