Deploy Azure Kubernetes Service (AKS) Cluster for App1: Network Type Selection

Choose the Right Network Type for Your Azure Kubernetes Service (AKS) Cluster

Question

You have an Azure subscription.

You plan to deploy an Azure Kubernetes Service (AKS) cluster to support an app named App1. On-premises clients connect to App1 by using the IP address of the pod.

For the AKS cluster, you need to choose a network type that will support App1.

What should you choose?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

With Azure CNI, every pod gets an IP address from the subnet and can be accessed directly. These IP addresses must be unique across your network space.

Incorrect Answers:

A: The kubenet networking option is the default configuration for AKS cluster creation. With kubenet, nodes get an IP address from the Azure virtual network subnet. Pods receive an IP address from a logically different address space to the Azure virtual network subnet of the nodes. Network address translation (NAT) is then configured so that the pods can reach resources on the Azure virtual network.

C, D: AKS only supports Kubenet networking and Azure Container Networking Interface (CNI) networking

https://docs.microsoft.com/en-us/azure/aks/concepts-network

When deploying an Azure Kubernetes Service (AKS) cluster to support an application, it's important to choose a network type that will support the application's connectivity requirements. In this case, the application named App1 is being accessed by on-premises clients using the IP address of the pod.

There are different network types that can be used with AKS, and each has its own characteristics and limitations. The available network types are:

A. kubenet: This is a simple and basic network plugin that creates a virtual network (VNet) and assigns an IP address to each pod in the cluster. However, kubenet does not support advanced networking features such as network policies or multiple interfaces per pod. Therefore, it might not be the best option for App1, which requires clients to connect using the pod IP address.

B. Azure Container Networking Interface (CNI): This is a more advanced network plugin that provides a more robust networking model with advanced features such as network policies, multiple interfaces per pod, and integration with Azure networking services. With CNI, pods can be assigned IP addresses from the same subnet as the AKS nodes, which can simplify connectivity. This might be a good option for App1 as it supports the use of pod IP addresses.

C. Hybrid Connection endpoints: This is a feature that allows you to securely connect your AKS cluster to on-premises resources through Azure Relay. However, this might not be the best option for App1, which requires clients to connect using the IP address of the pod.

D. Azure Private Link: This is a feature that allows you to securely access your AKS cluster over a private endpoint within your virtual network. It provides a more secure and scalable option for accessing your AKS cluster from within your VNet, and it might be a good option if App1 requires secure connectivity.

Therefore, the best option for App1, which requires clients to connect using the IP address of the pod, is B. Azure Container Networking Interface (CNI). CNI supports assigning IP addresses to pods and provides advanced networking features that can help to simplify connectivity and management.