Failed to upgrade node pool

Venkatesh Bobbadi (MINDTREE LIMITED) 20 Reputation points Microsoft Vendor
2023-04-08T08:47:49.5433333+00:00

Failed to upgrade node pool 'devqanp02' in Kubernetes service 'DevQA-K8S'. Error: Pre-allocated IPs 333 exceeds IPs available 249 in Subnet Cidr 192.168.3.0/24, Subnet Name DEV-QA-AKS-SN. http://aka.ms/aks/insufficientsubnetsize

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,233 questions
0 comments No comments
{count} votes

Accepted answer
  1. Adrian Dobrescu 266 Reputation points Microsoft Employee
    2023-04-08T09:14:05.5566667+00:00

    Hello Venkatesh,

    Thank you for reaching out Microsoft Community Q&A,

    Based on your provided error, seems that your subnet runs out of available space and the upgrade operation failed.
    As you might now for the upgrade process, an additional node is being added in order to gracefully cordon/drain and upgrade the ones one by one. More information in the official documentation: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster?tabs=azure-cli#upgrade-an-aks-cluster That being said, for the upgrade operation you need extra IPs, one for the buffer node and if you are using azure cni network plugin, then you will need one for each pod(e.g. if you have 30 pods/node they you will need 30 available IPs). **Workaround:
    **
    -In order to fix this subnet insufficient size you have the below options:

    • Create a new subnet with a larger, non-overlapping range.
    • Create a new node pool on the new subnet.
    • Drain the pods from the old node pool that resides in the old subnet.
    • Delete the old subnet and old node pool.

    More information in the below documentation:
    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/insufficientsubnetsize-error-advanced-networking#solution

    I hope this helps you to fix this blocker and achieve your goal. Please "Accept as Answer" and Upvote if it helped, so that it can help others in the community looking for help on similar topics. Thank you!

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.