移除节点前准备工作

kubectl get nodes
kubectl cordon <node name>
kubectl drain <node name> --ignore-daemonsets

使用 aws cli 工具删除指定节点且同时会减少autoscaling-group数量

# To terminate the instance and also decrements the size of the Auto Scaling group.
aws autoscaling terminate-instance-in-auto-scaling-group --instance-id <INSTANCE_ID> --should-decrement-desired-capacity --region <REGION>
最后修改:2023 年 08 月 22 日
如果觉得我的文章对你有用,请随意赞赏