aboutsummaryrefslogtreecommitdiffstats
path: root/gce
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-01-27 20:59:43 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-01-27 20:59:43 +0100
commit7165b3a9b125f68ff43eb2b5fdc597096c595062 (patch)
tree21ae81b691b1a5fab29d0d4cd9e0ccb4a1fa4e90 /gce
parent9a1fbc16bec5a5d79a9f1ce3a50d3f8916d5daea (diff)
gce: revert to terminate on migration
No, it does not work: Error 400: Invalid value for field 'resource.scheduling.preemptible': 'true'. Scheduling must have preemptible be false when OnHostMaintenance isn't TERMINATE
Diffstat (limited to 'gce')
-rw-r--r--gce/gce.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gce/gce.go b/gce/gce.go
index 1d22bd78b..27bbbf6f2 100644
--- a/gce/gce.go
+++ b/gce/gce.go
@@ -127,7 +127,7 @@ func (ctx *Context) CreateInstance(name, machineType, image, sshkey string) (str
Scheduling: &compute.Scheduling{
AutomaticRestart: false,
Preemptible: true,
- OnHostMaintenance: "MIGRATE",
+ OnHostMaintenance: "TERMINATE",
},
}