AKS icon indicating copy to clipboard operation
AKS copied to clipboard

When I added a new pool with 2 hosts and 30 IPs for each node, the validation process success and the deployment failed because there is no enough IPs.

Open JNuaman opened this issue 2 years ago • 11 comments

Describe the bug AKS Cluster Version: 1.25.6. Network type (plugin) Azure CNI /24 Subnet (251 IP Addresses) Node Pools: agentpool Running 2 nodes, Max pods per node 110

When I added a new pool with 2 hosts and 30 IPs for each node, the validation process success and the deployment failed because there is no enough IPs.

The Validation process should fail as the desired configuration are not suitable due to vnet subnet size.

To Reproduce Steps to reproduce the behavior:

  1. Create default AKS Cluster Integrate with Vnet that contains /24 subnet
  2. Create a new Pool with 2 nodes, and 30 IPs
  3. Validation will succeed (while it should fail)
  4. Deployment will fail, the failure Error: Failed to add node pool 'windev' to Kubernetes service 'JNuamanAKSCluster'. Error: Pre-allocated IPs 255 exceeds IPs available 251 in Subnet Cidr 10.10.0.0/24, Subnet Name AKS. http://aka.ms/aks/insufficientsubnetsize

Expected behavior The validation should fail with error: Failed to add node pool 'windev' to Kubernetes service 'JNuamanAKSCluster'. Error: Pre-allocated IPs 255 exceeds IPs available 251 in Subnet Cidr 10.10.0.0/24, Subnet Name AKS. http://aka.ms/aks/insufficientsubnetsize

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • CLI Version latest
  • Kubernetes version 1.25.6
  • CLI Extension version latest
  • Browser [e.g. chrome, safari] is applicable: chrome

JNuaman avatar May 11 '23 15:05 JNuaman

Action required from @Azure/aks-pm

ghost avatar Jul 03 '23 01:07 ghost

@miwithro This is a bug, the validation should fail because the process won't success.

JNuaman avatar Jul 04 '23 20:07 JNuaman

Issue needing attention of @Azure/aks-leads

ghost avatar Jul 20 '23 00:07 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Aug 04 '23 06:08 ghost

Hi @JNuaman, how did you create your cluster in this case? When I tried to reproduce the issue from Azure portal, I can see the validation error as show in the screenshot below.

image

AllenWen-at-Azure avatar Sep 09 '24 14:09 AllenWen-at-Azure

This issue will now be closed because it hasn't had any activity for 7 days after stale. JNuaman feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion.