Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0c612691
Commit
0c612691
authored
Dec 09, 2015
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow creation of clusters larger than 500 nodes
parent
05394f93
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
57 deletions
+111
-57
upgrade.sh
cluster/gce/upgrade.sh
+14
-11
util.sh
cluster/gce/util.sh
+97
-46
No files found.
cluster/gce/upgrade.sh
View file @
0c612691
...
@@ -174,6 +174,7 @@ function upgrade-nodes() {
...
@@ -174,6 +174,7 @@ 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
...
@@ -184,7 +185,7 @@ function prepare-node-upgrade() {
...
@@ -184,7 +185,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
detect-node-names
# sets INSTANCE_GROUPS
# TODO(zmerlynn): Refactor setting scope flags.
# TODO(zmerlynn): Refactor setting scope flags.
local
scope_flags
=
local
scope_flags
=
...
@@ -231,16 +232,18 @@ function do-node-upgrade() {
...
@@ -231,16 +232,18 @@ 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
})
gcloud
${
subgroup
}
rolling-updates
\
for
group
in
${
INSTANCE_GROUPS
[@]
}
;
do
--project
=
"
${
PROJECT
}
"
\
gcloud
${
subgroup
}
rolling-updates
\
--zone
=
"
${
ZONE
}
"
\
--project
=
"
${
PROJECT
}
"
\
start
\
--zone
=
"
${
ZONE
}
"
\
--group
=
"
${
NODE_INSTANCE_PREFIX
}
-group"
\
start
\
--template
=
"
${
template_name
}
"
\
--group
=
"
${
group
}
"
\
--instance-startup-timeout
=
300s
\
--template
=
"
${
template_name
}
"
\
--max-num-concurrent-instances
=
1
\
--instance-startup-timeout
=
300s
\
--max-num-failed-instances
=
0
\
--max-num-concurrent-instances
=
1
\
--min-instance-update-time
=
0s
--max-num-failed-instances
=
0
\
--min-instance-update-time
=
0s
done
# TODO(zmerlynn): Wait for the rolling-update to finish.
# TODO(zmerlynn): Wait for the rolling-update to finish.
...
...
cluster/gce/util.sh
View file @
0c612691
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment