Private ACR with AKS: Failed to pull image... failed to resolve reference... unexpected status from HEAD request... 403 Forbidden

LyTien Dung 5 Reputation points
2024-08-02T08:10:14.7033333+00:00

The kubelet try to pull an image from a private ACR (role assignment ArcPull granted for the -agentpool managed identity).
It gets an error like Failed to pull image... failed to resolve reference... unexpected status from HEAD request... 403 Forbidden
I think the network is ok, but if there is something missing about the permission on ACR private endpoint configuration.

In the cluster, using a pod to test network with ACR FQDN and private IP. I get these information:

nc -zv tempregistrydev.azurecr.io 443
Connection to tempregistrydev.azurecr.io (10.5.144.6) 443 port [tcp/https] succeeded!

telnet tempregistrydev.azurecr.io 443
Connected to tempregistrydev.azurecr.io

But, this ICMP ping is not passed
ping 10.5.144.6 PING 10.5.144.6 (10.5.144.6) 56(84) bytes of data.

Here are results after running Troubleshoot private link DNS configuration and connectivity issues

Have you provided a valid private endpoint resource?
Yes

Is your private endpoint in status 'Succeeded'?
Yes

What's the status of the private endpoint connection?
Approved

How are you trying to connect to the private endpoint from the client resource?
FQDN

What result do you get when resolving the FQDN?
Private IP

Run TCP pings to the FQDN or the private IP address and the corresponding TCP port. Is the TCP ping working?
Yes

Need further assistance If you have followed this troubleshooting guidance and reached this point, everything seems properly configured.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
460 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,127 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.