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{
|
scheduling = &compute.Scheduling{
|
||||||
AutomaticRestart: fi.Bool(false),
|
AutomaticRestart: fi.Bool(false),
|
||||||
OnHostMaintenance: "TERMINATE",
|
OnHostMaintenance: "TERMINATE",
|
||||||
|
ProvisioningModel: "STANDARD", // TODO: Support Spot?
|
||||||
Preemptible: true,
|
Preemptible: true,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -256,6 +257,7 @@ func (e *InstanceTemplate) mapToGCE(project string, region string) (*compute.Ins
|
||||||
AutomaticRestart: fi.Bool(true),
|
AutomaticRestart: fi.Bool(true),
|
||||||
// TODO: Migrate or terminate?
|
// TODO: Migrate or terminate?
|
||||||
OnHostMaintenance: "MIGRATE",
|
OnHostMaintenance: "MIGRATE",
|
||||||
|
ProvisioningModel: "STANDARD",
|
||||||
Preemptible: false,
|
Preemptible: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue