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
059980e3
Commit
059980e3
authored
May 16, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25670 from gmarek/root-disk
Automatic merge from submit-queue Make bigger master root disks in GCE for large clusters Ref. #25660 cc @zmerlynn @wojtek-t
parents
fee8a559
64618c33
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
helper.sh
cluster/gce/coreos/helper.sh
+1
-0
helper.sh
cluster/gce/debian/helper.sh
+1
-0
helper.sh
cluster/gce/trusty/helper.sh
+2
-1
util.sh
cluster/gce/util.sh
+15
-0
No files found.
cluster/gce/coreos/helper.sh
View file @
059980e3
...
...
@@ -67,5 +67,6 @@ function create-master-instance() {
--metadata-from-file
\
"kube-env=
${
KUBE_TEMP
}
/master-kube-env.yaml,user-data=
${
KUBE_ROOT
}
/cluster/gce/coreos/master.yaml,configure-node=
${
KUBE_ROOT
}
/cluster/gce/coreos/configure-node.sh,configure-kubelet=
${
KUBE_ROOT
}
/cluster/gce/coreos/configure-kubelet.sh,cluster-name=
${
KUBE_TEMP
}
/cluster-name.txt"
\
--disk
"name=
${
MASTER_NAME
}
-pd,device-name=master-pd,mode=rw,boot=no,auto-delete=no"
\
--boot-disk-size
"
${
MASTER_ROOT_DISK_SIZE
:-
10
}
"
\
${
preemptible_master
}
}
cluster/gce/debian/helper.sh
View file @
059980e3
...
...
@@ -54,6 +54,7 @@ function create-master-instance {
--metadata-from-file
\
"startup-script=
${
KUBE_TEMP
}
/configure-vm.sh,kube-env=
${
KUBE_TEMP
}
/master-kube-env.yaml,cluster-name=
${
KUBE_TEMP
}
/cluster-name.txt"
\
--disk
"name=
${
MASTER_NAME
}
-pd,device-name=master-pd,mode=rw,boot=no,auto-delete=no"
\
--boot-disk-size
"
${
MASTER_ROOT_DISK_SIZE
:-
10
}
"
\
${
preemptible_master
}
}
...
...
cluster/gce/trusty/helper.sh
View file @
059980e3
...
...
@@ -95,5 +95,6 @@ function create-master-instance {
--can-ip-forward
\
--metadata-from-file
\
"kube-env=
${
KUBE_TEMP
}
/master-kube-env.yaml,user-data=
${
KUBE_ROOT
}
/cluster/gce/trusty/master.yaml,configure-sh=
${
KUBE_ROOT
}
/cluster/gce/trusty/configure.sh,cluster-name=
${
KUBE_TEMP
}
/cluster-name.txt
${
image_metadata
}
"
\
--disk
"name=
${
MASTER_NAME
}
-pd,device-name=master-pd,mode=rw,boot=no,auto-delete=no"
--disk
"name=
${
MASTER_NAME
}
-pd,device-name=master-pd,mode=rw,boot=no,auto-delete=no"
\
--boot-disk-size
"
${
MASTER_ROOT_DISK_SIZE
:-
10
}
"
}
cluster/gce/util.sh
View file @
059980e3
...
...
@@ -624,6 +624,18 @@ function create-network() {
fi
}
# Assumes:
# NUM_NODES
# Sets:
# MASTER_ROOT_DISK_SIZE
function
get-master-root-disk-size
()
{
if
[
"
$NUM_NODES
"
-le
"1000"
]
;
then
export
MASTER_ROOT_DISK_SIZE
=
"10"
else
export
MASTER_ROOT_DISK_SIZE
=
"50"
fi
}
function
create-master
()
{
echo
"Starting master and configuring firewalls"
gcloud compute firewall-rules create
"
${
MASTER_NAME
}
-https"
\
...
...
@@ -667,6 +679,9 @@ function create-master() {
create-certs
"
${
MASTER_RESERVED_IP
}
"
# Sets MASTER_ROOT_DISK_SIZE that is used by create-master-instance
get-master-root-disk-size
create-master-instance
"
${
MASTER_RESERVED_IP
}
"
&
}
...
...
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