While trying to executing the skaffold command, the docker image created and the same image pushed to the Azure container registry but unable to create POD and getting the following error.
error: code = Unknown desc = Error response from daemon: Get https://forgerockcontrainerregistry.azurecr.io/v2/skaffold-example/manifests/sha256:60636cbcbf6fce3d2b7acf90d103e3c3d4907d41f1ed0b1a8861e4fd46e26305: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information.
mBack-off pulling image “forgerockcontrainerregistry.azurecr.io/skaffold-example:v1.14.0-16-g10275c66a@sha256:60636cbcbf6fce3d2b7acf90d103e3c3d4907d41f1ed0b1a8861e4fd46e26305″←[0m
←[34mCleaning up…←[0m
Problem Statement
By default, Azure Cluster does not allow the Azure Container registry to create PODs.
Solution:
We need to allow Azure Container to create PODS in the Azure Cluster by updating the Azure Cluster permission.
It means attach Azure Container Registry to Azure Cluster
az aks update --name forgerock-cluster --group container-registry-resource-group --attach-acr forgerockcontrainerregistry
–name : Azure Cluster Name – we can omit the suffix .azure.io
–group: Azure Cluster Group
–attach-acr : Azure Container Registry
This is one-time activity have to do.
Hello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in the IT industry for more than 12 years. NarayanaTutorial is my web technologies blog. My specialties are Java / J2EE, Spring, Hibernate, Struts, Webservices, PHP, Oracle, MySQL, SQLServer, Web Hosting, Website Development, and IAM(ForgeRock) Specialist
I am a self-learner and passionate about training and writing. I am always trying my best to share my knowledge through my blog.