Interview Prep/Azure/Entra ID, RBAC and Identities

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 Contributor on 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-acr grants AcrPull to 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}"
Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities