Soru

Zorluk: ZorConfigure Azure Kubernetes Service (AKS)

Your company has an Azure subscription containing a virtual network named `VNet1` (172.16.0.0/16172.16.0.0/16). `VNet1` contains a subnet named `AKS-Subnet` (172.16.1.0/24172.16.1.0/24). You plan to deploy an Azure Kubernetes Service (AKS) cluster named `aks-prod` into `AKS-Subnet`. The cluster configuration must satisfy the following requirements:
- The cluster must start with 33 nodes and support scaling up to 88 nodes.
- Each node must run up to 2828 pods.
- Pods must be assigned IP addresses directly from `AKS-Subnet` to allow direct routing without NAT to an on-premises network connected via ExpressRoute.
- You must prevent IP address allocation failures in the subnet during scaling.

Which configuration should you select to deploy the cluster?

  1. A
    Deploy the cluster using the Azure CNI network model and use the default maximum pods per node setting.
  2. Deploy the cluster using the Azure CNI network model and set the maximum pods per node to 28.Cevap
  3. C
    Deploy the cluster using the Kubenet network model and set the maximum pods per node to 28.
  4. D
    Deploy the cluster using the Azure CNI network model with dynamic IP allocation to a new /29 pod subnet.

Cevap

Deploy the cluster using the Azure CNI network model and set the maximum pods per node to 28.
Deploying the cluster using Azure CNI and configuring the maximum pods per node to 28 ensures that pods get routable IP addresses directly from the subnet (meeting the no-NAT requirement) while keeping the total IP allocation to 237, which is within the 251 usable IP addresses in the /24 subnet.

Adım Adım Çözüm

1
Calculate the number of usable IP addresses in the subnet.
A /24/24 subnet has 256256 total IP addresses. Since Azure reserves 55 IP addresses, the number of usable IP addresses is 2565=251256 - 5 = 251.
This establishes the upper bound of IP addresses available for the entire AKS cluster deployment (nodes and pods).
2
Evaluate the IP requirements for the Azure CNI network model at maximum scale.
The formula for IP allocation in Azure CNI is: Total IPs Required=Nodes+(Nodes×Max Pods Per Node)+5\text{Total IPs Required} = \text{Nodes} + (\text{Nodes} \times \text{Max Pods Per Node}) + 5. For 88 nodes and 2828 pods per node, the required IPs are: 8+(8×28)+5=8+224+5=2378 + (8 \times 28) + 5 = 8 + 224 + 5 = 237 IP addresses.
To verify if the subnet can support the maximum scale-out scenario of 88 nodes with 2828 pods each.
3
Compare the required IP addresses against the usable IP addresses.
Since 237251237 \leq 251, the configuration fits within the subnet. If the default setting of 3030 pods per node were used, the requirement would be 8+(8×30)+5=2538 + (8 \times 30) + 5 = 253 IP addresses, exceeding the available space.
To determine the exact configuration parameter needed to prevent deployment and scaling failures.

Anahtar Kavram

Azure CNI IP Address Planning
Tahmini Süre:2m 30s
Bu soruyu puanla