移除节点前准备工作
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>