Two AKS on the same subnet using Azure CNI plugin

Savva 40 Reputation points
2023-04-12T19:09:26.7566667+00:00

Is there any problem with the deployment of two AKS clusters using Azure CNI plugin in the same subnet besides the possibility of IP address pool exhaustion? The documentation https://learn.microsoft.com/en-us/azure/aks/operator-best-practices-network says not to do this but it is not clear to me why and if it is really related to Azure CNI networks or just to kubenet networks.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,763 questions
Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,448 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cristian Gatjens 716 Reputation points Microsoft Employee
    2023-04-12T20:12:39.9833333+00:00

    Hi @Savva, Thanks for reaching out and I hope you are doing well. Based on our documentation, the recommendation of not deploying two AKS clusters in the same subnet applies to kubenet only: https://learn.microsoft.com/en-us/azure/aks/configure-kubenet#prerequisites But it does not apply to Azure CNI as you can see: https://learn.microsoft.com/en-us/azure/aks/configure-azure-cni#prerequisites The main reason we don't recommend having two AKS clusters in the same subnet if using kubenet is described in the following GitHub link: https://github.com/MicrosoftDocs/azure-docs/issues/37462 As you clearly mentioned, having two AKS clusters sharing the same subnet can lead to IP addresses exhaustion quickly. Please "Accept the answer" if the information helped you. This will help us and others in the community as well. Feel free to reply with any other questions or concerns. Hope this helps!

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.