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
68539ae8
Commit
68539ae8
authored
Nov 23, 2015
by
Brad Erickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minion->Node rename: KUBE_NODE_IMAGE
parent
6b91b45e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
config-default.sh
cluster/aws/config-default.sh
+1
-1
config-test.sh
cluster/aws/config-test.sh
+1
-1
util.sh
cluster/aws/coreos/util.sh
+4
-4
common.sh
cluster/aws/trusty/common.sh
+2
-2
util.sh
cluster/aws/util.sh
+1
-1
No files found.
cluster/aws/config-default.sh
View file @
68539ae8
...
...
@@ -134,7 +134,7 @@ ENABLE_MINION_PUBLIC_IP=${KUBE_ENABLE_NODE_PUBLIC_IP:-true}
# OS options for minions
KUBE_OS_DISTRIBUTION
=
"
${
KUBE_OS_DISTRIBUTION
:-
vivid
}
"
KUBE_
MINION_IMAGE
=
"
${
KUBE_MINION
_IMAGE
:-}
"
KUBE_
NODE_IMAGE
=
"
${
KUBE_NODE
_IMAGE
:-}
"
COREOS_CHANNEL
=
"
${
COREOS_CHANNEL
:-
alpha
}
"
CONTAINER_RUNTIME
=
"
${
KUBE_CONTAINER_RUNTIME
:-
docker
}
"
RKT_VERSION
=
"
${
KUBE_RKT_VERSION
:-
0
.5.5
}
"
...
...
cluster/aws/config-test.sh
View file @
68539ae8
...
...
@@ -130,7 +130,7 @@ ENABLE_MINION_PUBLIC_IP=${KUBE_ENABLE_NODE_PUBLIC_IP:-true}
# OS options for minions
KUBE_OS_DISTRIBUTION
=
"
${
KUBE_OS_DISTRIBUTION
:-
vivid
}
"
KUBE_
MINION_IMAGE
=
"
${
KUBE_MINION
_IMAGE
:-}
"
KUBE_
NODE_IMAGE
=
"
${
KUBE_NODE
_IMAGE
:-}
"
COREOS_CHANNEL
=
"
${
COREOS_CHANNEL
:-
alpha
}
"
CONTAINER_RUNTIME
=
"
${
KUBE_CONTAINER_RUNTIME
:-
docker
}
"
RKT_VERSION
=
"
${
KUBE_RKT_VERSION
:-
0
.5.5
}
"
...
...
cluster/aws/coreos/util.sh
View file @
68539ae8
...
...
@@ -19,11 +19,11 @@
SSH_USER
=
core
function
detect-minion-image
(){
if
[[
-z
"
${
KUBE_
MINION
_IMAGE
-
}
"
]]
;
then
KUBE_
MINION
_IMAGE
=
$(
curl
-s
-L
http://
${
COREOS_CHANNEL
}
.release.core-os.net/amd64-usr/current/coreos_production_ami_all.json | python
-c
"import json,sys;obj=json.load(sys.stdin);print filter(lambda t: t['name']=='
${
AWS_REGION
}
', obj['amis'])[0]['hvm']"
)
if
[[
-z
"
${
KUBE_
NODE
_IMAGE
-
}
"
]]
;
then
KUBE_
NODE
_IMAGE
=
$(
curl
-s
-L
http://
${
COREOS_CHANNEL
}
.release.core-os.net/amd64-usr/current/coreos_production_ami_all.json | python
-c
"import json,sys;obj=json.load(sys.stdin);print filter(lambda t: t['name']=='
${
AWS_REGION
}
', obj['amis'])[0]['hvm']"
)
fi
if
[[
-z
"
${
KUBE_
MINION
_IMAGE
-
}
"
]]
;
then
echo
"unable to determine KUBE_
MINION
_IMAGE"
if
[[
-z
"
${
KUBE_
NODE
_IMAGE
-
}
"
]]
;
then
echo
"unable to determine KUBE_
NODE
_IMAGE"
exit
2
fi
}
...
...
cluster/aws/trusty/common.sh
View file @
68539ae8
...
...
@@ -18,9 +18,9 @@
# A library of common helper functions for Ubuntus & Debians.
function
detect-minion-image
()
{
if
[[
-z
"
${
KUBE_
MINION
_IMAGE
=-
}
"
]]
;
then
if
[[
-z
"
${
KUBE_
NODE
_IMAGE
=-
}
"
]]
;
then
detect-image
KUBE_
MINION
_IMAGE
=
$AWS_IMAGE
KUBE_
NODE
_IMAGE
=
$AWS_IMAGE
fi
}
...
...
cluster/aws/util.sh
View file @
68539ae8
...
...
@@ -997,7 +997,7 @@ function start-minions() {
fi
${
AWS_ASG_CMD
}
create-launch-configuration
\
--launch-configuration-name
${
ASG_NAME
}
\
--image-id
$KUBE_
MINION
_IMAGE
\
--image-id
$KUBE_
NODE
_IMAGE
\
--iam-instance-profile
${
IAM_PROFILE_NODE
}
\
--instance-type
$MINION_SIZE
\
--key-name
${
AWS_SSH_KEY_NAME
}
\
...
...
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