-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for InstanceTerminationAction for instance preemption. #1315
base: main
Are you sure you want to change the base?
Add support for InstanceTerminationAction for instance preemption. #1315
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jwmay2012 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @jwmay2012. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-gcp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/ok-to-test Thanks for working on this @jwmay2012 |
36836aa
to
83edace
Compare
83edace
to
8717e90
Compare
I tested this code and it works. It's only supposed to be used with Spot VMs. Not STANDARD or the older The result with 🤷🏻♂️ This isn't as helpful as I was hoping it would be. I was hoping this would allow Spot machines to get automatically re-created when a VM is preempted. But no. It might be worth it to have this option exposed, but I don't know if I can consider it useful given how CAPI reacts (or doesn't react) to it. Up to you :D |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Allows specifying for instances to be deleted instead of just stopped when the instance is preempted.
Special notes for your reviewer:
https://cloud.google.com/compute/docs/instances/create-use-spot#rest_1
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance#instance_termination_action
TODOs:
Release note: