Create ACR:
az login
AKS_RESOURCE_GROUP=pmca-aks-rgroup
AKS_REGION=centralus
AKS_CLUSTER=pmca-aks-demo-cluster
ACR_NAME=pmcaacrhellodemo
az aks update -n ${AKS_CLUSTER} -g ${AKS_RESOURCE_GROUP} --attach-acr ${ACR_NAME}
Upload image to :
Step1: Create docker images like (mention platform):
docker build --platform linux/amd64 -t pmca-engine:1.1 .
tag the image:
docker tag pmca-engine:1.1 pmcaacrhellodemo.azurecr.io/pmca-engine:v2
Push it to ACR:
docker push pmcaacrhellodemo.azurecr.io/pmca-engine:v2
Run into AKS
az aks get-credentials --resource-group ${AKS_RESOURCE_GROUP} --name ${AKS_CLUSTER}
AKS_RESOURCE_GROUP=pmca-aks-rgroup
AKS_CLUSTER=pmca-aks-demo-cluster
AKS_REGION=centralus
ACR_NAME=pmcaacrhellodemo
az aks update -n ${AKS_CLUSTER} -g ${AKS_RESOURCE_GROUP} --attach-acr ${ACR_NAME}
az aks get-credentials --resource-group ${AKS_RESOURCE_GROUP} --name ${AKS_CLUSTER}