Created
July 29, 2018 11:25
-
-
Save gianrubio/2012aa00fe928891fe95bdc13376e0f9 to your computer and use it in GitHub Desktop.
k8s + aws - drain and detach from ASG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl drain --force --ignore-daemonsets --delete-local-data ip-10-100-45-198.eu-west-1.compute.internal | |
aws autoscaling detach-instances --instance-ids i-0d5a6fd4e9fbf4d47 --auto-scaling-group-name certs-2018 --should-decrement-desired-capacity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment