diff --git a/cluster/gce/configure-vm.sh b/cluster/gce/configure-vm.sh index 96bd0bcb88a24..3922b92656367 100644 --- a/cluster/gce/configure-vm.sh +++ b/cluster/gce/configure-vm.sh @@ -66,6 +66,13 @@ for k,v in yaml.load(sys.stdin).iteritems(): done fi + # Infer master status from presence in node pool + if [[ $(hostname) = ${NODE_INSTANCE_PREFIX}* ]]; then + KUBERNETES_MASTER="false" + else + KUBERNETES_MASTER="true" + fi + if [[ "${KUBERNETES_MASTER}" == "true" ]]; then # TODO(zmerlynn): This block of code should disappear once #4561 & #4562 are done if [[ -z "${KUBERNETES_NODE_NAMES:-}" ]]; then diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 504017fcb57ac..0b0349109b3b6 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -435,7 +435,6 @@ function build-kube-env { rm -f ${file} cat >$file <