mirror of https://github.com/kubernetes/kops.git
Merge pull request #13902 from justinsb/gce_provisioning_model
gce: set ProvisioningModel on InstanceTemplate
This commit is contained in:
commit
96e991236e
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue