Skip to content

Commit 3bff1a8

Browse files
authored
Review from Editor
1 parent c530419 commit 3bff1a8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

support/azure/azure-kubernetes/extensions/cannot-pull-image-from-acr-to-aks-cluster.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,21 @@ If you pull an image by using an [image pull secret](https://kubernetes.io/docs/
206206
207207
### Cause 1b: 401 Unauthorized error due to incompatible architecture
208208

209-
You might encounter a "401 Unauthorized" error even when the AKS cluster identity is authorized (as described in the [Cause 1a: 401 Unauthorized error due to incorrect authorization](#cause1a) section). This issue can happen if the container image in Azure Container Registry (ACR) doesn't match the architecture (such as arm64 vs. amd64) of the node running the container. For example, deploying an arm64 image on an amd64 node or vice versa can result in this error.
209+
You might encounter a "401 Unauthorized" error even when the AKS cluster identity is authorized (as described in the [Cause 1a: 401 Unauthorized error due to incorrect authorization](#cause1a) section). This issue can happen if the container image in the ACR doesn't match the architecture (such as arm64 versus amd64) of the node running the container. For example, deploying an arm64 image on an amd64 node or vice versa can result in this error.
210210

211211
The error message will appear as follows:
212212

213213
> Failed to pull image "\<acrname>.azurecr.io/\<repository:\tag>": [rpc error: code = NotFound desc = failed to pull and unpack image "\<acrname>.azurecr.io/\<repository:\tag>": no match for platform in manifest: not found, failed to pull and unpack image "\<acrname>.azurecr.io/\<repository\:tag>": failed to resolve reference "\<acrname>.azurecr.io/\<repository\:tag>": failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://\<acrname>.azurecr.io/oauth2/token?scope=repository%3A\<repository>%3Apull&service=\<acrname>.azurecr.io: 401 Unauthorized]
214214
215-
When diagnosing this issue using Azure CLI, you might see an unexpected "exec format error" if your system node pool runs a different architecture than the image in ACR:
215+
When diagnosing this issue using the Azure CLI, you might see an unexpected "exec format error" if your system node pool runs a different architecture than the image in the ACR:
216216

217217
```azurecli
218218
az aks check-acr --resource-group <MyResourceGroup> --name <MyManagedCluster> --acr <myacr>.azurecr.io
219219
220220
exec /canipull: exec format error
221221
```
222222

223-
#### Solution: Push images with correct achitecture or push mult-architectgure images
223+
#### Solution: Push images with the correct architecture or push multi-architecture images
224224

225225
To resolve this issue, use one of the following methods:
226226

0 commit comments

Comments
 (0)