Skip to content

Instantly share code, notes, and snippets.

@gianrubio
Created July 29, 2018 11:25
Show Gist options
  • Save gianrubio/2012aa00fe928891fe95bdc13376e0f9 to your computer and use it in GitHub Desktop.
Save gianrubio/2012aa00fe928891fe95bdc13376e0f9 to your computer and use it in GitHub Desktop.
k8s + aws - drain and detach from ASG
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