Private ACR with AKS: Failed to pull image... failed to resolve reference... unexpected status from HEAD request... 403 Forbidden
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.