From 226aa7306ca87c7880bd03c5650cfc633b8bcdb0 Mon Sep 17 00:00:00 2001 From: wojtekt Date: Thu, 21 Jun 2018 11:00:18 +0200 Subject: [PATCH] Create heapster node first --- cluster/gce/util.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index fd446852bb5..b999d57ec06 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -2317,6 +2317,8 @@ function create-nodes() { if [[ -z "${HEAPSTER_MACHINE_TYPE:-}" ]]; then local -r nodes="${NUM_NODES}" else + echo "Creating a special node for heapster with machine-type ${HEAPSTER_MACHINE_TYPE}" + create-heapster-node local -r nodes=$(( NUM_NODES - 1 )) fi @@ -2346,11 +2348,6 @@ function create-nodes() { --zone "${ZONE}" \ --project "${PROJECT}" || true; done - - if [[ -n "${HEAPSTER_MACHINE_TYPE:-}" ]]; then - echo "Creating a special node for heapster with machine-type ${HEAPSTER_MACHINE_TYPE}" - create-heapster-node - fi } # Assumes: