Closed yahavb closed 5 years ago
You can subscribe to the Cloudwatch events, I hope they still work.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html
Hi @yahavb
The EC2 meta-data service returns an HTTP 404 response for http://169.254.169.254/latest/meta-data/spot until the instance is going to be interrupted.
The URLs to be polled are either http://169.254.169.254/latest/meta-data/spot/instance-action (returns the action and timestamp for termination) or http://169.254.169.254/latest/meta-data/spot/termination-time (returns termination timestamp only).
To trigger an interruption, you can use Spot Fleet as per instructions here.
the daemon set returns 404 as /meta-data/spot/ is not available. I checked thru the EC2 console that
Lifecycle
isspot
Any other ways to get interruption notices? this is what I get when Ikubectl exec
to the pod that runs the spot-sig.