How do you spread AKS workloads across availability zones?
IntermediateConceptAKS and ACR
Answer
- Create node pools across zones:
--zones 1 2 3. Zones can only be set at node pool creation. - Use
topologySpreadConstraintsontopology.kubernetes.io/zonewithmaxSkew: 1. - Use zone-redundant storage (ZRS disks via a custom storage class with
skuName: Premium_ZRS) or replicate at app level. - Use Standard tier for the zone-redundant control plane SLA.
The autoscaler balances zones when balance-similar-node-groups=true or when you have one pool per zone.
More on AKS and ACR
What does Microsoft manage in AKS and what do you manage?BeginnerWhat is the difference between system and user node pools?BeginnerCompare the AKS networking options: kubenet, Azure CNI, Azure CNI Overlay, Azure CNI Powered by Cilium.AdvancedHow many IPs does an AKS subnet need with flat Azure CNI vs Overlay?AdvancedWhat are the AKS tiers (Free, Standard, Premium)?IntermediateHow do AKS Kubernetes version upgrades work?Intermediate