From 15afc98c83ff87888ef5e234ed988755d9199e41 Mon Sep 17 00:00:00 2001 From: Dawn Chen Date: Tue, 11 Aug 2015 10:28:59 -0700 Subject: [PATCH] Fix kube-push using gcloud compute instance-groups managed set-instance-template` --- cluster/gce/util.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 5a81f1e839e..5a90a7d0c34 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -1006,10 +1006,11 @@ function prepare-push() { # being used, create a temp one, then delete the old one and recreate it once again. create-node-instance-template "tmp" - gcloud compute instance-groups managed --zone "${ZONE}" \ - set-template "${NODE_INSTANCE_PREFIX}-group" \ - --project "${PROJECT}" \ - --template "${NODE_INSTANCE_PREFIX}-template-tmp" || true; + gcloud compute instance-groups managed \ + set-instance-template "${NODE_INSTANCE_PREFIX}-group" \ + --template "${NODE_INSTANCE_PREFIX}-template-tmp" \ + --zone "${ZONE}" \ + --project "${PROJECT}" || true; gcloud compute instance-templates delete \ --project "${PROJECT}" \ @@ -1018,10 +1019,11 @@ function prepare-push() { create-node-instance-template - gcloud compute instance-groups managed --zone "${ZONE}" \ - set-template "${NODE_INSTANCE_PREFIX}-group" \ - --project "${PROJECT}" \ - --template "${NODE_INSTANCE_PREFIX}-template" || true; + gcloud compute instance-groups managed \ + set-instance-template "${NODE_INSTANCE_PREFIX}-group" \ + --template "${NODE_INSTANCE_PREFIX}-template" \ + --zone "${ZONE}" \ + --project "${PROJECT}" || true; gcloud compute instance-templates delete \ --project "${PROJECT}" \