Skip to content
/ spotgun Public

🎯🔫 Kubernetes DaemonSet to handle EC2 spot instance termination notices

License

Notifications You must be signed in to change notification settings

errm/spotgun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotgun

spotgun

Image Credit

Spotgun polls the EC2 metadata service for a spot instance termination notice and then drains the node before it is terminated.

This gives Kubernetes almost 2 minutes to gracefully remove any pods running on a spot instance before it is terminated by AWS.

You can read more about spot instance termination notices here

Usage

Ensure that your spot nodes are labeled appropriately, e.g:

"node-role.kubernetes.io/spot-worker": "true"

Then deploy the manifest:

kubectl -f spotgun.yaml

About

🎯🔫 Kubernetes DaemonSet to handle EC2 spot instance termination notices

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published