Pods are `Pending`: `0/3 nodes are available: 3 Insufficient cpu. preemption: 0/3 nodes are available: 3 No preemption victims found for incoming pod.`
BeginnerTroubleshootingAKS and ACR Errors
Answer
Likely causes → Requests exceed free allocatable capacity, and the autoscaler is off, at max, or can't scale (quota).
Diagnose →
kubectl describe pod <pod> | sed -n '/Events/,$p'
kubectl describe nodes | grep -A5 "Allocated resources"
az aks nodepool show -g rg --cluster-name aks -n apps --query "{auto:enableAutoScaling, min:minCount, max:maxCount, count:count}"
Fix → Enable/raise autoscaler max, right-size requests, add a pool; check quota if scale-out fails.
Prevent → Realistic requests and autoscaler headroom alerts.
More on AKS and ACR Errors
Pods show `ImagePullBackOff` with `failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://acrshop.azurecr.io/oauth2/token?...: 401 Unauthorized`.Beginner`Failed to pull image "acrshop.azurecr.io/shop/web:v3": ... manifest unknown` or `not found`.Beginner`ImagePullBackOff` with `dial tcp: lookup acrshop.azurecr.io on 168.63.129.16:53: no such host` or connection timeouts to the registry.Advanced`exec /usr/local/bin/python: exec format error` in pod logs right after deploying a new image.BeginnerCluster autoscaler events show `pod didn't trigger scale-up: 1 max node group size reached` or `NotTriggerScaleUp`.IntermediateAKS upgrade fails: `(UpgradeFailed) Drain node aks-apps-12345-vmss000002 failed when evicting pod web-7d9... failed with Too Many Requests error. This is often caused by a restrictive Pod Disruption Budget (PDB) policy.`Intermediate