-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support Spot VMs #10309
Comments
Suggest that the potential terraform configuration for the instance is housed within the scheduling block (similar to where the resource "google_compute_instance" "instance" {
name = "instance"
#...
scheduling {
provisioning_model = SPOT
}
} Docs from gcloud beta cli...
|
Hi, any estimate on release date for this feature? |
@MKaciuba It's available now in the "google-beta" provider. I used it yesterday. Since Google considers spot instances to be preview status, perhaps Terraform won't release it to the "google" provider until Google considers it GA? Just speculation, I have no idea... |
Hi, any news regarding GCE support? I mean google_compute_instance and google_compute_instance_template resources, is there any plans to implement spot vms support? |
I just tried provisioning a spot instance and it worked with 4.13.0 provider version. |
I'm not sure why this would have been in the [email protected], as it was in the release notes for https://github.com/hashicorp/terraform-provider-google-beta/releases/tag/v4.12.0. There may have been a minor hiccup- sorry about that! I believe this issue is ready to be closed based on GoogleCloudPlatform/magic-modules#5662. @shuyama1 or @andrewyz please correct me if you feel otherwise! I see the PR says "part of" rather than "closes" which generally means a change only partially addresses an issue, but that's an unspoken meaning and I can't spot anything missing. |
There were some test failures in 4.11.0 (We started the release process and the API is changed after then, which causes some tests to fail). And then we submit a patch to fix it but can't catch up the time. So the commit was reverted and then released in 4.12.0. Not sure why the [email protected] didn't reflect this change. |
Hmm- the docs appear to have been properly reverted (we've reverted the code and not the docs in the past, so I figured I'd check that!). @megan07 is there a way to check the registry's commit/tag for past versions? This probably isn't worth spending much time on since it's correct in latest, but I'm curious 🤷 @andrewyz can you confirm that we can close this issue now? |
Yes, looks good so far. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
I'm using preemtible instances today together with GKE autoscaling.
Just received the announcement from Google Cloud that they are switching to "Spot VMs".
I believe this feature should be added in the beta provider until GA.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: