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
c908fbe5
Commit
c908fbe5
authored
Jan 05, 2015
by
Tim Hockin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3199 from a-robinson/disk-size
Allow for easily specifying the type and size of minion disks on GCE.
parents
40808bce
8b384535
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
config-default.sh
cluster/gce/config-default.sh
+2
-0
config-test.sh
cluster/gce/config-test.sh
+2
-0
util.sh
cluster/gce/util.sh
+4
-2
No files found.
cluster/gce/config-default.sh
View file @
c908fbe5
...
...
@@ -21,6 +21,8 @@ ZONE=${KUBE_GCE_ZONE:-us-central1-b}
MASTER_SIZE
=
n1-standard-1
MINION_SIZE
=
n1-standard-1
NUM_MINIONS
=
${
NUM_MINIONS
:-
4
}
MINION_DISK_TYPE
=
pd-standard
MINION_DISK_SIZE
=
10GB
# TODO(dchen1107): Filed an internal issue to create an alias
# for containervm image, so that gcloud will expand this
# to the latest supported image.
...
...
cluster/gce/config-test.sh
View file @
c908fbe5
...
...
@@ -21,6 +21,8 @@ ZONE=${KUBE_GCE_ZONE:-us-central1-b}
MASTER_SIZE
=
g1-small
MINION_SIZE
=
g1-small
NUM_MINIONS
=
${
NUM_MINIONS
:-
2
}
MINION_DISK_TYPE
=
pd-standard
MINION_DISK_SIZE
=
10GB
# TODO(dchen1107): Filed an internal issue to create an alias
# for containervm image, so that gcloud will expand this
# to the latest supported image.
...
...
cluster/gce/util.sh
View file @
c908fbe5
...
...
@@ -296,7 +296,7 @@ function create-route {
# $1: The name of the instance.
# $2: The scopes flag.
# $3: The minion start script.
function
create-
instance
{
function
create-
minion
{
detect-project
local
attempt
=
0
while
true
;
do
...
...
@@ -304,6 +304,8 @@ function create-instance {
--project
"
${
PROJECT
}
"
\
--zone
"
${
ZONE
}
"
\
--machine-type
"
${
MINION_SIZE
}
"
\
--boot-disk-type
"
${
MINION_DISK_TYPE
}
"
\
--boot-disk-size
"
${
MINION_DISK_SIZE
}
"
\
--image-project
=
"
${
IMAGE_PROJECT
}
"
\
--image
"
${
IMAGE
}
"
\
--tags
"
${
MINION_TAG
}
"
\
...
...
@@ -466,7 +468,7 @@ function kube-up {
)
>
"
${
KUBE_TEMP
}
/minion-start-
${
i
}
.sh"
local
scopes_flag
=
"
${
scope_flags
[@]
}
"
create-
instance
"
${
MINION_NAMES
[
$i
]
}
"
"
${
scopes_flag
}
"
"startup-script=
${
KUBE_TEMP
}
/minion-start-
${
i
}
.sh"
&
create-
minion
"
${
MINION_NAMES
[
$i
]
}
"
"
${
scopes_flag
}
"
"startup-script=
${
KUBE_TEMP
}
/minion-start-
${
i
}
.sh"
&
if
[
$i
-ne
0
]
&&
[
$((
i%5
))
-eq
0
]
;
then
echo
Waiting
for
creation of a batch of instances at
$i
...
...
...
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