Interview Prep/Azure/AKS and ACR Errors

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.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors