AKS identity network and storage
Separate four identity boundaries
A human or CI principal may be allowed to manage an AKS resource through Azure Resource Manager. That permission is distinct from downloading user credentials, authenticating to the Kubernetes API with Microsoft Entra ID, and authorizing Kubernetes verbs using native Kubernetes RBAC or the configured Azure RBAC for Kubernetes authorization. A workload accessing Azure storage is another authorization boundary. Test the exact principal, action and scope; a successful login is not permission to read every Secret.
Azure resource management != Kubernetes authentication != Kubernetes authorization != workload Azure resource accessWorkload identity and registry access
Microsoft Entra Workload ID uses a projected Kubernetes service account token and federation with an Entra identity. Configure the OIDC issuer, the exact namespace/service account subject, token exchange audience and least-privilege Azure resource role. The ServiceAccount annotation identifies the client and the Pod template label opts in to workload identity mutation. A matching supported SDK must exchange the token. Separately, kubelet image pulls from Azure Container Registry need registry permissions appropriate to its authorization mode. Granting application identity permissions does not repair an image pull error.
apiVersion: v1kind: ServiceAccountmetadata: name: catalog namespace: bookstore annotations: azure.workload.identity/client-id: "00000000-0000-0000-0000-000000000000"Overlay, flat networks and policy
Azure CNI Overlay assigns Pod addresses from a separate CIDR and allocates one /24 block per node. A /20 Pod range contains 16 such blocks; 12 existing nodes plus 3 surge nodes leave one block in the simplified model. Azure CNI flat models instead assign Pod addresses from virtual network subnets, with different address allocation rules. Check overlap with connected networks, node subnet capacity, service CIDR, DNS and outbound access. Cilium or another supported policy implementation determines actual NetworkPolicy behavior. Do not treat overlay arithmetic as proof of Azure quota or network reachability.
pod CIDR 10.244.0.0/20 -> 16 /24 blocks12 nodes + 3 surge = 15 blocks -> 1 remainsStorage and traffic paths
Azure Disk CSI is a candidate for block storage attached to one node at a time in the usual ReadWriteOnce configuration; Azure Files CSI can serve shared file access across nodes using supported protocols and configurations. Check SKU, zones, permissions, throughput, protocol support, backup and reclaim policy. For traffic, a private API server endpoint controls management reachability, not whether an application Service is publicly exposed. Plan private DNS, ingress or a supported Gateway controller, TLS and application authorization independently. Never assume a controller exists from YAML alone.
ledger -> Azure Disk CSI candidateshared catalog assets -> Azure Files CSI candidateprivate API endpoint != private application endpointVerify each dependency independently
For a fictional catalog, distinguish image pull, Pod startup, token exchange, resource authorization, network reachability and application response. Review a sanitized event or error before changing any policy. A 403 after token exchange may indicate a missing resource role rather than a bad token; an image pull failure has a different identity path. The included Pod and ServiceAccount are static examples with invalid image domain and placeholder client ID; they are not deployable.
image pull -> start -> projected token -> exchange -> authorized resource request -> responsePractice and next steps
Use network-cases.json and identity-cases.json to calculate Overlay headroom and locate failed identity gates. Explain why a passing result does not authorize deployment. Run python validate_offline.py from lab-fixtures/azure-aks/ in the extracted package. The script only reads local fixtures. Next: AKS lifecycle and cost plan.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
AKS identity network and storage — knowledge check
Map Entra/workload identity and network dependencies
A principal can retrieve user kubeconfig. What is still required to list Secrets?
What connects a Kubernetes service account to an Entra workload identity?
How many /24 blocks fit in a /20 Overlay Pod range?
Which storage is a candidate for shared file access across nodes?
A private AKS API endpoint guarantees what about application exposure?