Skip to content

Commit

Permalink
Fixed not registering master during cluster creation.
Browse files Browse the repository at this point in the history
Fixed not registering master during cluster creation. This fixes kubernetes#36167.
  • Loading branch information
jszczepkowski committed Nov 4, 2016
1 parent 3dec88d commit 5e8c569
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 5e8c569

Please sign in to comment.