AKS how to delete old node pool system

Yongchao Liu (Neusoft America Inc) 191 Reputation points Microsoft External Staff
2021-12-08T01:18:44.19+00:00

I created a new system node pool. I want to delete the old node pool. If I delete the old node pool, will the original service be extended to the new node pool's Pods?

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,456 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2021-12-08T03:34:41.233+00:00

    You will need to drain the nodes before deleting the old node pool. Pods which are running on these nodes will be moved to New node pool, while you do so.
    You may follow the below procedure for each nodes. AKS requires you to assign your new pool as the system pool manually, before deleting the old one

    1. Get each node's full name- kubectl get nodes
    2. Delete one by one- kubectl drain node-name --delete-local-data --ignore-daemonsets
    3. Assign the new pool as a system pool: az aks nodepool update -g <RG Name> --cluster-name <Cluster Name> -n <short name of the node pool> --mode system

    Reference here: use-system-pools

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Mikhail 11 Reputation points
    2022-08-30T15:37:36.6+00:00

    Just in case here is a link to official documentation - Resize node pools in Azure Kubernetes Service (AKS), if you need a bit more details in addition to @Manu Philip 's answer.

    2 people found this answer helpful.
    0 comments No comments

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.