Commit 2eafc562 authored by Shyam Jeedigunta's avatar Shyam Jeedigunta

Block on master-creation step for large clusters (>50 nodes) in kube-up

parent b80ce17b
...@@ -953,6 +953,7 @@ function delete-subnetworks() { ...@@ -953,6 +953,7 @@ function delete-subnetworks() {
# #
# Assumed vars: # Assumed vars:
# KUBE_TEMP: temporary directory # KUBE_TEMP: temporary directory
# NUM_NODES: #nodes in the cluster
# #
# Args: # Args:
# $1: host name # $1: host name
...@@ -1044,7 +1045,13 @@ function create-master() { ...@@ -1044,7 +1045,13 @@ function create-master() {
create-certs "${MASTER_RESERVED_IP}" create-certs "${MASTER_RESERVED_IP}"
create-etcd-certs ${MASTER_NAME} create-etcd-certs ${MASTER_NAME}
if [[ "${NUM_NODES}" -ge "50" ]]; then
# We block on master creation for large clusters to avoid doing too much
# unnecessary work in case master start-up fails (like creation of nodes).
create-master-instance "${MASTER_RESERVED_IP}"
else
create-master-instance "${MASTER_RESERVED_IP}" & create-master-instance "${MASTER_RESERVED_IP}" &
fi
} }
# Adds master replica to etcd cluster. # Adds master replica to etcd cluster.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment