Sign inSign up

nikoogle/swarm-aws-spot-terminator

By nikoogle

•Updated over 5 years ago

Image
0

617

nikoogle/swarm-aws-spot-terminator repository overview

⁠Based on https://github.com/WiserSolutions/swarm-aws-spot-terminator⁠

⁠Credits for original work to https://github.com/WiserSolutions/swarm-aws-spot-terminator⁠

⁠Refactored in July of 2021

⁠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 \
  nikoogle/swarm-aws-spot-terminator

⁠Usage in user data

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

Tag summary

Content type

Image

Digest

Size

72.4 MB

Last updated

over 5 years ago

docker pull nikoogle/swarm-aws-spot-terminator