Pod stuck in `ContainerCreating` with `MountVolume.SetUp failed for volume "secrets-store-inline" : rpc error: code = Unknown desc = failed to mount secrets store objects for pod shop/web-..., err: ... failed to get objectType:secret, objectName:db-password ... StatusCode=403`.
AdvancedTroubleshootingAKS and ACR Errors
Answer
Likely causes → The identity in the SecretProviderClass lacks Key Vault Secrets User, the vault firewall blocks the cluster, or the wrong clientID/tenantId.
Diagnose →
kubectl describe pod <pod> -n shop | sed -n '/Events/,$p'
kubectl -n kube-system logs -l app=secrets-store-provider-azure --tail 50
kubectl get secretproviderclass kv-shop -n shop -o yaml
Fix → Assign the role on the vault to the identity in clientID, allow network access (PE + DNS), correct IDs.
Prevent → Deploy identity, role and SecretProviderClass from the same IaC/Helm release.
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.BeginnerPods are `Pending`: `0/3 nodes are available: 3 Insufficient cpu. preemption: 0/3 nodes are available: 3 No preemption victims found for incoming pod.`BeginnerCluster autoscaler events show `pod didn't trigger scale-up: 1 max node group size reached` or `NotTriggerScaleUp`.Intermediate