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
98130487
Commit
98130487
authored
Nov 10, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Nov 10, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36486 from wojtek-t/increase_master_disk_size
Automatic merge from submit-queue Increase master disk size in large clusters Ref #34911
parents
7d312c2b
3a3031fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
util.sh
cluster/gce/util.sh
+14
-0
No files found.
cluster/gce/util.sh
View file @
98130487
...
@@ -729,6 +729,18 @@ function get-master-root-disk-size() {
...
@@ -729,6 +729,18 @@ function get-master-root-disk-size() {
fi
fi
}
}
# Assumes:
# NUM_NODES
# Sets:
# MASTER_DISK_SIZE
function
get-master-disk-size
()
{
if
[[
"
${
NUM_NODES
}
"
-le
"1000"
]]
;
then
export
MASTER_DISK_SIZE
=
"20GB"
else
export
MASTER_DISK_SIZE
=
"100GB"
fi
}
function
create-master
()
{
function
create-master
()
{
echo
"Starting master and configuring firewalls"
echo
"Starting master and configuring firewalls"
gcloud compute firewall-rules create
"
${
MASTER_NAME
}
-https"
\
gcloud compute firewall-rules create
"
${
MASTER_NAME
}
-https"
\
...
@@ -739,6 +751,7 @@ function create-master() {
...
@@ -739,6 +751,7 @@ function create-master() {
# We have to make sure the disk is created before creating the master VM, so
# We have to make sure the disk is created before creating the master VM, so
# run this in the foreground.
# run this in the foreground.
get-master-disk-size
gcloud compute disks create
"
${
MASTER_NAME
}
-pd"
\
gcloud compute disks create
"
${
MASTER_NAME
}
-pd"
\
--project
"
${
PROJECT
}
"
\
--project
"
${
PROJECT
}
"
\
--zone
"
${
ZONE
}
"
\
--zone
"
${
ZONE
}
"
\
...
@@ -847,6 +860,7 @@ function replicate-master() {
...
@@ -847,6 +860,7 @@ function replicate-master() {
# We have to make sure the disk is created before creating the master VM, so
# We have to make sure the disk is created before creating the master VM, so
# run this in the foreground.
# run this in the foreground.
get-master-disk-size
gcloud compute disks create
"
${
REPLICA_NAME
}
-pd"
\
gcloud compute disks create
"
${
REPLICA_NAME
}
-pd"
\
--project
"
${
PROJECT
}
"
\
--project
"
${
PROJECT
}
"
\
--zone
"
${
ZONE
}
"
\
--zone
"
${
ZONE
}
"
\
...
...
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