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
2eafc562
Commit
2eafc562
authored
Aug 08, 2017
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Block on master-creation step for large clusters (>50 nodes) in kube-up
parent
b80ce17b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
util.sh
cluster/gce/util.sh
+8
-1
No files found.
cluster/gce/util.sh
View file @
2eafc562
...
@@ -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
}
create-master-instance
"
${
MASTER_RESERVED_IP
}
"
&
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
}
"
&
fi
}
}
# Adds master replica to etcd cluster.
# Adds master replica to etcd cluster.
...
...
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