Complete the code to specify the network plugin for an AKS cluster.
az aks create --resource-group myResourceGroup --name myAKSCluster --network-plugin [1]The azure option sets the Azure CNI network plugin, which integrates pods directly with the Azure virtual network.
Complete the code to enable IP masquerading in kubenet networking.
az aks create --resource-group myResourceGroup --name myAKSCluster --network-plugin kubenet --enable-ip-masquerade [1]Setting --enable-ip-masquerade true enables IP masquerading, which is important for kubenet networking to allow pods to access external networks.
Fix the error in the command to create an AKS cluster with Azure CNI and a custom subnet.
az aks create --resource-group myResourceGroup --name myAKSCluster --network-plugin [1] --vnet-subnet-id /subscriptions/xxx/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnetThe azure network plugin is required when specifying a custom subnet with --vnet-subnet-id. Kubenet does not support this.
Fill both blanks to configure the AKS cluster with kubenet and specify the DNS service IP.
az aks create --resource-group myResourceGroup --name myAKSCluster --network-plugin [1] --service-cidr 10.0.0.0/16 --dns-service-ip [2]
Using kubenet as the network plugin and setting the DNS service IP to 10.0.0.10 within the service CIDR is a valid configuration.
Fill all three blanks to create an AKS cluster with Azure CNI, specify the subnet, and enable network policy.
az aks create --resource-group myResourceGroup --name myAKSCluster --network-plugin [1] --vnet-subnet-id [2] --network-policy [3]
The Azure CNI plugin (azure) requires specifying the subnet ID and can use calico as the network policy for advanced network security.