From 5e8c5693567782397fe4b720ed2b4cc89472b43e Mon Sep 17 00:00:00 2001 From: Jerzy Szczepkowski Date: Fri, 4 Nov 2016 09:58:09 +0100 Subject: [PATCH] Fixed not registering master during cluster creation. Fixed not registering master during cluster creation. This fixes #36167. --- cluster/gce/util.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index ec96d838436..ed44a86017c 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -776,7 +776,11 @@ function create-master() { create-static-ip "${MASTER_NAME}-ip" "${REGION}" MASTER_RESERVED_IP=$(gcloud compute addresses describe "${MASTER_NAME}-ip" \ --project "${PROJECT}" --region "${REGION}" -q --format='value(address)') - KUBELET_APISERVER="${MASTER_RESERVED_IP}" + + if [[ "${REGISTER_MASTER_KUBELET:-}" == "true" ]]; then + KUBELET_APISERVER="${MASTER_RESERVED_IP}" + fi + KUBERNETES_MASTER_NAME="${MASTER_RESERVED_IP}" create-certs "${MASTER_RESERVED_IP}"