Merge pull request #13902 from justinsb/gce_provisioning_model

gce: set ProvisioningModel on InstanceTemplate
This commit is contained in:
Kubernetes Prow Robot 2022-06-28 11:06:05 -07:00 committed by GitHub
commit 96e991236e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -249,6 +249,7 @@ func (e *InstanceTemplate) mapToGCE(project string, region string) (*compute.Ins
scheduling = &compute.Scheduling{
AutomaticRestart: fi.Bool(false),
OnHostMaintenance: "TERMINATE",
ProvisioningModel: "STANDARD", // TODO: Support Spot?
Preemptible: true,
}
} else {
@ -256,6 +257,7 @@ func (e *InstanceTemplate) mapToGCE(project string, region string) (*compute.Ins
AutomaticRestart: fi.Bool(true),
// TODO: Migrate or terminate?
OnHostMaintenance: "MIGRATE",
ProvisioningModel: "STANDARD",
Preemptible: false,
}
}