cablespaghetti / kubeadm-aws

Really cheap Kubernetes cluster on AWS with kubeadm
Other
865 stars 59 forks source link

Add termination notice handling #1

Closed tarasglek closed 5 years ago

tarasglek commented 5 years ago

This is cool. One improvement is to add a termination-notice handler to trigger backup(ala https://blog.fugue.co/2015-01-06-spot-termination-notices.html). Ec2 gives you a 2min termination notice, which should be plenty.

cablespaghetti commented 5 years ago

I did see that was a feature. I wouldn't necessarily want to rely on it as the sole thing that triggers a backup. However, maybe I'll make the scheduled backup interval a parameter so you can make it more infrequent if you want and then add this.

cablespaghetti commented 5 years ago

I'm going to call this done, although I'm not sure how to verify that it is working correctly other than wait around for my instance to eventually get terminated by AWS...