Skip to content

nstapelbroek/swarm-aws-spot-terminator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Swarm spot instance graceful shutdown

In AWS when a spot instance receives a shutdown notification, this image drains the node and removes the instance from swarm

Usage

On node startup run:

docker run -it \
  -v /var/run/docker.sock:/var/run/docker.sock \
  shapigor/swarm-aws-spot-terminator

Usage in user data

docker run \
    --restart=always -d \
    -v /var/run/docker.sock:/var/run/docker.sock \
    shapigor/swarm-aws-spot-terminator

About

Gracefully terminates a spot instance in a swarm cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 93.3%
  • Dockerfile 6.7%