What happens to Pod-Workload if a Node gets destroyed

previousversiondocs 61 Reputation points
2023-09-25T11:25:46.1166667+00:00

when running pod-workload on an AKS-cluster with autoscaling enabled, what happens, if the pool gets scaled down? If a Pod is running workload on a node, and this node is being removed because of nodepool-scaledown, how does AKS manage to keep my pod running until the workload is finished?

Even if there is a re-scheduling, this would interrupt my workload, which would lead to a failure in my case.

So how does K8s know, when a Node is "ready" to be scaled down ?

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,457 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
450 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mutaz Nassar 2,361 Reputation points Microsoft Employee
    2023-09-25T12:42:53.0433333+00:00

    Hi previousversiondocs,

    If a node considered to be removed then the Kubernetes will run extra pod before deleting the main pod to avoid disruption in the workloads.

    Also, you can use pod disruption budget which will schedule extra pods on other nodes before deleting the running pods to avoid any downtime.

    You can also see the cluster auto scaler FAQs which explains the behavior when scale up or scale down happens.

    Hope this helps, and please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.


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.