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
34f164a4
Commit
34f164a4
authored
Aug 10, 2015
by
Alex Robinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12384 from Hokutosei/master
added preemptible flag in gcloud compute instance-templates create
parents
933c855f
eaacc1e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-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
+5
-0
No files found.
cluster/gce/config-default.sh
View file @
34f164a4
...
...
@@ -26,6 +26,7 @@ MASTER_DISK_SIZE=${MASTER_DISK_SIZE:-20GB}
MINION_DISK_TYPE
=
pd-standard
MINION_DISK_SIZE
=
${
MINION_DISK_SIZE
:-
100GB
}
REGISTER_MASTER_KUBELET
=
${
REGISTER_MASTER
:-
true
}
PREEMPTIBLE_MINION
=
${
PREEMPTIBLE_MINION
:-
false
}
OS_DISTRIBUTION
=
${
KUBE_OS_DISTRIBUTION
:-
debian
}
MASTER_IMAGE
=
${
KUBE_GCE_MASTER_IMAGE
:-
container
-vm-v20150806
}
...
...
cluster/gce/config-test.sh
View file @
34f164a4
...
...
@@ -27,6 +27,7 @@ MINION_DISK_TYPE=pd-standard
MINION_DISK_SIZE
=
${
MINION_DISK_SIZE
:-
100GB
}
REGISTER_MASTER_KUBELET
=
${
REGISTER_MASTER
:-
false
}
KUBE_APISERVER_REQUEST_TIMEOUT
=
300
PREEMPTIBLE_MINION
=
${
PREEMPTIBLE_MINION
:-
false
}
OS_DISTRIBUTION
=
${
KUBE_OS_DISTRIBUTION
:-
debian
}
MASTER_IMAGE
=
${
KUBE_GCE_MASTER_IMAGE
:-
container
-vm-v20150806
}
...
...
cluster/gce/util.sh
View file @
34f164a4
...
...
@@ -398,6 +398,10 @@ function create-node-template {
fi
local
attempt
=
1
local
preemptible_minions
=
""
if
[[
"
${
PREEMPTIBLE_MINION
}
"
==
"true"
]]
;
then
preemptible_minions
=
"--preemptible --maintenance-policy TERMINATE"
fi
while
true
;
do
echo
"Attempt
${
attempt
}
to create
${
1
}
"
>
&2
if
!
gcloud compute instance-templates create
"
$1
"
\
...
...
@@ -409,6 +413,7 @@ function create-node-template {
--image
"
${
MINION_IMAGE
}
"
\
--tags
"
${
MINION_TAG
}
"
\
--network
"
${
NETWORK
}
"
\
${
preemptible_minions
}
\
$2
\
--can-ip-forward
\
--metadata-from-file
"
$3
"
,
"
$4
"
>
&2
;
then
...
...
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