kubernetes-sigs/cluster-api-provider-aws

AWSMachinePool graceful scale down

Open

#2,574 建立於 2021年7月8日

在 GitHub 查看
 (19 留言) (0 反應) (1 負責人)Go (689 fork)auto 404
help wantedkind/featurelifecycle/stalepriority/important-soon

倉庫指標

Star
 (723 star)
PR 合併指標
 (PR 指標待抓取)

描述

/kind feature /help /priority important-soon /milestone v0.7.x

Describe the solution you'd like When using AWSMachinePool and the pool is scaled down (i.e. the ASG is scaled down) i would like to ensure that the pods running on the node are evicted gracefully and that no new pods are scheduled on the node to be terminated. Currently the instance is terminated and the pods are not shutdown gracefully.

We should use a lifecycle hook on the ASG and use the notification to cordon the node and evict the running pods.

Anything else you would like to add: This does not apply to AWSManagedMachinePool as this is handled already by AWS.

Discussed briefly in slack

Environment:

  • Cluster-api-provider-aws version: 0.6.6

貢獻者指南