I want use helm chart to pull ACR container. I thing need to provide the ACR image url to helm chart. Please give me the format of helm chart to do that. Thanks you.
You can follow the steps in Use Azure Container Registry as a Helm repository for your application charts. And you need to take care of the Azure CLI command az acr helm
. Configure the ACR name first or use the parameter --name
in each command.
The steps are simple and show below:
az acr helm repo add
to get an authentication token for your Azure container registry that is used by the Helm clienthelm fetch
az acr helm repo add
helm search your_acr_name
Then you can use the command helm install your_acr_name/chart_name
to install the chart.
Create a new helm chart for your application. I suggest you to go through this document for more information about charts.
I am giving quick info here. To create a chart from command line use helm create It will create a chart with default templates(One deployment, service and one ingress). By default that ingress will be in disabled state.
You can find many files in the chart directory. In that pick values.yaml. You need to give your image details there as shown below. Part of the values.yaml file is here
image: repository: .azurecr.io/ tag: pullPolicy: IfNotPresent
After adding these details, You will be able to deploy that image from ACR to AKS.