Your company plans to deploy a new Azure Kubernetes Service (AKS) cluster named `aks-shipping`. You have an existing virtual network (`VNet1`) containing a subnet named `aks-subnet` with the address space . Due to address space limitations, the corporate network team mandates that the cluster must not consume more than IP addresses from `aks-subnet`. The cluster must meet the following requirements:
* The cluster must scale up to a maximum of nodes.
* Each node must support up to pods.
* Pod IP addresses must be directly routable from an on-premises network via an ExpressRoute connection without performing Network Address Translation (NAT).
Which two configuration actions should you perform to meet these requirements? (Select two.)
- Configure the cluster network plugin to use Azure CNI.Answer
- Enable dynamic pod IP allocation and assign a separate subnet for pod IP addresses.Answer
- CConfigure the cluster network plugin to use Kubenet.
- DConfigure the cluster network plugin to use Azure CNI Overlay.
- EDeploy the cluster using standard Azure CNI without dynamic pod IP allocation.
Answer
To meet the requirements, the cluster network plugin must be configured to use Azure CNI, and dynamic pod IP allocation must be enabled with a separate subnet assigned for pod IP addresses.
To satisfy the direct routability requirement without NAT, the AKS cluster must use Azure CNI. To satisfy the constraint of not consuming more than IP addresses from the node subnet (`aks-subnet`) for nodes, you must enable dynamic pod IP allocation. This allows the nodes to be deployed in the node subnet (consuming only one IP address per node) and the pods to be deployed in a separate, dedicated subnet.
Step-by-Step Solution
Key Concept
Azure CNI with Dynamic Pod IP Allocation