Commit 9492fd6a authored by Zach Loafman's avatar Zach Loafman

Revert "Allow creation of clusters larger than 500 nodes"

parent aaa1fe67
...@@ -174,7 +174,6 @@ function upgrade-nodes() { ...@@ -174,7 +174,6 @@ function upgrade-nodes() {
# #
# Vars set: # Vars set:
# SANITIZED_VERSION # SANITIZED_VERSION
# INSTANCE_GROUPS
# KUBELET_TOKEN # KUBELET_TOKEN
# KUBE_PROXY_TOKEN # KUBE_PROXY_TOKEN
# CA_CERT_BASE64 # CA_CERT_BASE64
...@@ -185,7 +184,7 @@ function prepare-node-upgrade() { ...@@ -185,7 +184,7 @@ function prepare-node-upgrade() {
echo "== Preparing node upgrade (to ${KUBE_VERSION}). ==" >&2 echo "== Preparing node upgrade (to ${KUBE_VERSION}). ==" >&2
SANITIZED_VERSION=$(echo ${KUBE_VERSION} | sed 's/[\.\+]/-/g') SANITIZED_VERSION=$(echo ${KUBE_VERSION} | sed 's/[\.\+]/-/g')
detect-node-names # sets INSTANCE_GROUPS detect-node-names
# TODO(zmerlynn): Refactor setting scope flags. # TODO(zmerlynn): Refactor setting scope flags.
local scope_flags= local scope_flags=
...@@ -232,18 +231,16 @@ function do-node-upgrade() { ...@@ -232,18 +231,16 @@ function do-node-upgrade() {
subgroup="alpha compute" subgroup="alpha compute"
fi fi
local template_name=$(get-template-name-from-version ${SANITIZED_VERSION}) local template_name=$(get-template-name-from-version ${SANITIZED_VERSION})
for group in ${INSTANCE_GROUPS[@]}; do gcloud ${subgroup} rolling-updates \
gcloud ${subgroup} rolling-updates \ --project="${PROJECT}" \
--project="${PROJECT}" \ --zone="${ZONE}" \
--zone="${ZONE}" \ start \
start \ --group="${NODE_INSTANCE_PREFIX}-group" \
--group="${group}" \ --template="${template_name}" \
--template="${template_name}" \ --instance-startup-timeout=300s \
--instance-startup-timeout=300s \ --max-num-concurrent-instances=1 \
--max-num-concurrent-instances=1 \ --max-num-failed-instances=0 \
--max-num-failed-instances=0 \ --min-instance-update-time=0s
--min-instance-update-time=0s
done
# TODO(zmerlynn): Wait for the rolling-update to finish. # TODO(zmerlynn): Wait for the rolling-update to finish.
......
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