What is the managed identity of an AKS cluster vs the kubelet identity?
AdvancedConceptEntra ID, RBAC and Identities
Answer
- Cluster (control plane) identity: used by AKS itself to manage Azure resources: create load balancers and public IPs, attach disks, read subnets. In a custom VNet it needs
Network Contributoron the subnet (or VNet). - Kubelet identity: a user-assigned identity attached to the node VMSS, used by kubelet to pull images from ACR.
az aks update --attach-acrgrantsAcrPullto this identity.
Mixing them up is a common bug: granting AcrPull to the cluster identity does nothing for image pulls.
az aks show -g rg -n aks --query "{cluster:identity.principalId, kubelet:identityProfile.kubeletidentity.objectId}"
More on Entra ID, RBAC and Identities
What is Microsoft Entra ID and how is it different from on-prem Active Directory?BeginnerWhat is the difference between an app registration and a service principal?BeginnerWhat is a managed identity and what problem does it solve?BeginnerSystem-assigned vs user-assigned managed identity: when do you use each?IntermediateHow does Azure RBAC evaluate access?IntermediateName the core built-in roles and the difference between Owner, Contributor and User Access Administrator.Beginner