Cannot pull image with Azure Kuberenetes Cluster

Regular Visitor

I am following the tutorial to learn how to push my own docker image to kubernetes. When I am applying azure-vote-all-in-one-redis.yaml, deployments and services are created, but the frontend service is not running, gives me the following error:

Failed to pull image "31422tutorialacr.azurecr.io/azuredocs/azure-vote-front:v1": [rpc error: code = NotFound desc = failed to pull and unpack image "31422tutorialacr.azurecr.io/azuredocs/azure-vote-front:v1": failed to resolve reference "31422tutorialacr.azurecr.io/azuredocs/azure-vote-front:v1": 31422tutorialacr.azurecr.io/azuredocs/azure-vote-front:v1: not found, rpc error: code = Unknown desc = failed to pull and unpack image "31422tutorialacr.azurecr.io/azuredocs/azure-vote-front:v1": failed to resolve reference "31422tutorialacr.azurecr.io/azuredocs/azure-vote-front:v1": failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized]

the names are correct, I checked it. Everything like in the tutorial. Additionally, what I found is:

# az aks check-acr  --resource-group ${RESOURCE_GROUP} --name ${CLUSTER_NAME} --acr 31422tutorialacr
Merged "AKSTestingCluster" as current context in /tmp/tmp_7sqwm_x
[2022-03-15T00:31:32Z] Checking host name resolution (31422tutorialacr): FAILED
[2022-03-15T00:31:32Z] Failed to resolve specified fqdn 31422tutorialacr: lookup 31422tutorialacr on 168.63.129.16:53: no such host

 

Adding a secret accordingly to another tutorial didn't help (I added them in line 58 of my file according to the first tutorial). I am logged in to Azure, docker. I cannot find why there is still authorization problem.

0 Replies