An administrator is planning the network configuration for a new Azure Kubernetes Service (AKS) cluster named aks-retail. The cluster will be deployed into an existing virtual network with an address space of . The virtual network is peered with an on-premises network that uses the address space. Due to limited available IP addresses in the range, the administrator decides to configure the cluster using Azure CNI Overlay. Which two network configuration requirements must the administrator meet when deploying this cluster?
- The Pod CIDR range used for the overlay network must not overlap with or .Answer
- The DNS service IP address must be an IP address within the Service CIDR range configured for the cluster.Answer
- CThe Service CIDR range must be a subnet within the address space of the virtual network.
- DThe network plugin mode must be configured as kubenet to enable the overlay network behavior.
- EThe virtual network subnets must be configured with User-Defined Routes (UDRs) to manually route pod traffic between the nodes.
Answer
The administrator must ensure that the Pod CIDR range used for the overlay network does not overlap with the virtual network or the on-premises network, and that the DNS service IP address is within the Service CIDR range configured for the cluster.
Azure CNI Overlay routes pod traffic using a private overlay network. The Pod CIDR range must be unique and must not overlap with the virtual network () or the connected on-premises network () to avoid routing errors. Additionally, the DNS service IP address must reside within the configured Service CIDR range to enable internal cluster name resolution.
Step-by-Step Solution
Key Concept
Azure CNI Overlay network configuration in Azure Kubernetes Service (AKS)