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
b020fb1f
Commit
b020fb1f
authored
Mar 29, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Mar 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #43726 from vishh/local-ssd-gce
Automatic merge from submit-queue Add support for local ssds in GCE For #43640
parents
8a62e2a4
937bac94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
config-default.sh
cluster/gce/config-default.sh
+1
-0
config-test.sh
cluster/gce/config-test.sh
+1
-0
util.sh
cluster/gce/util.sh
+7
-0
No files found.
cluster/gce/config-default.sh
View file @
b020fb1f
...
@@ -31,6 +31,7 @@ MASTER_DISK_TYPE=pd-ssd
...
@@ -31,6 +31,7 @@ MASTER_DISK_TYPE=pd-ssd
MASTER_DISK_SIZE
=
${
MASTER_DISK_SIZE
:-
20GB
}
MASTER_DISK_SIZE
=
${
MASTER_DISK_SIZE
:-
20GB
}
NODE_DISK_TYPE
=
${
NODE_DISK_TYPE
:-
pd
-standard
}
NODE_DISK_TYPE
=
${
NODE_DISK_TYPE
:-
pd
-standard
}
NODE_DISK_SIZE
=
${
NODE_DISK_SIZE
:-
100GB
}
NODE_DISK_SIZE
=
${
NODE_DISK_SIZE
:-
100GB
}
NODE_LOCAL_SSDS
=
${
NODE_LOCAL_SSDS
:-
0
}
REGISTER_MASTER_KUBELET
=
${
REGISTER_MASTER
:-
true
}
REGISTER_MASTER_KUBELET
=
${
REGISTER_MASTER
:-
true
}
PREEMPTIBLE_NODE
=
${
PREEMPTIBLE_NODE
:-
false
}
PREEMPTIBLE_NODE
=
${
PREEMPTIBLE_NODE
:-
false
}
PREEMPTIBLE_MASTER
=
${
PREEMPTIBLE_MASTER
:-
false
}
PREEMPTIBLE_MASTER
=
${
PREEMPTIBLE_MASTER
:-
false
}
...
...
cluster/gce/config-test.sh
View file @
b020fb1f
...
@@ -31,6 +31,7 @@ MASTER_DISK_TYPE=pd-ssd
...
@@ -31,6 +31,7 @@ MASTER_DISK_TYPE=pd-ssd
MASTER_DISK_SIZE
=
${
MASTER_DISK_SIZE
:-
20GB
}
MASTER_DISK_SIZE
=
${
MASTER_DISK_SIZE
:-
20GB
}
NODE_DISK_TYPE
=
${
NODE_DISK_TYPE
:-
pd
-standard
}
NODE_DISK_TYPE
=
${
NODE_DISK_TYPE
:-
pd
-standard
}
NODE_DISK_SIZE
=
${
NODE_DISK_SIZE
:-
100GB
}
NODE_DISK_SIZE
=
${
NODE_DISK_SIZE
:-
100GB
}
NODE_LOCAL_SSDS
=
${
NODE_LOCAL_SSDS
:-
0
}
REGISTER_MASTER_KUBELET
=
${
REGISTER_MASTER
:-
true
}
REGISTER_MASTER_KUBELET
=
${
REGISTER_MASTER
:-
true
}
KUBE_APISERVER_REQUEST_TIMEOUT
=
300
KUBE_APISERVER_REQUEST_TIMEOUT
=
300
PREEMPTIBLE_NODE
=
${
PREEMPTIBLE_NODE
:-
false
}
PREEMPTIBLE_NODE
=
${
PREEMPTIBLE_NODE
:-
false
}
...
...
cluster/gce/util.sh
View file @
b020fb1f
...
@@ -480,6 +480,12 @@ function create-node-template() {
...
@@ -480,6 +480,12 @@ function create-node-template() {
if
[[
"
${
PREEMPTIBLE_NODE
}
"
==
"true"
]]
;
then
if
[[
"
${
PREEMPTIBLE_NODE
}
"
==
"true"
]]
;
then
preemptible_minions
=
"--preemptible --maintenance-policy TERMINATE"
preemptible_minions
=
"--preemptible --maintenance-policy TERMINATE"
fi
fi
local
local_ssds
=
""
if
[
!
-z
${
NODE_LOCAL_SSDS
+x
}
]
;
then
for
i
in
$(
seq
${
NODE_LOCAL_SSDS
})
;
do
local_ssds
=
"
$local_ssds
--local-ssd=interface=SCSI "
done
fi
while
true
;
do
while
true
;
do
echo
"Attempt
${
attempt
}
to create
${
1
}
"
>
&2
echo
"Attempt
${
attempt
}
to create
${
1
}
"
>
&2
if
!
gcloud compute instance-templates create
"
$template_name
"
\
if
!
gcloud compute instance-templates create
"
$template_name
"
\
...
@@ -491,6 +497,7 @@ function create-node-template() {
...
@@ -491,6 +497,7 @@ function create-node-template() {
--image
"
${
NODE_IMAGE
}
"
\
--image
"
${
NODE_IMAGE
}
"
\
--tags
"
${
NODE_TAG
}
"
\
--tags
"
${
NODE_TAG
}
"
\
--network
"
${
NETWORK
}
"
\
--network
"
${
NETWORK
}
"
\
${
local_ssds
}
\
${
preemptible_minions
}
\
${
preemptible_minions
}
\
$2
\
$2
\
--can-ip-forward
\
--can-ip-forward
\
...
...
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