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
7ab3106d
Commit
7ab3106d
authored
Jun 08, 2015
by
krousey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9369 from justinsb/aws_mount_all_ephemeral
AWS: Mount ephemeral devices, even if not specified in the AMI
parents
5aa0219a
1c229e52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
util.sh
cluster/aws/util.sh
+7
-0
No files found.
cluster/aws/util.sh
View file @
7ab3106d
...
...
@@ -47,6 +47,11 @@ MASTER_INTERNAL_IP=${INTERNAL_IP_BASE}${MASTER_IP_SUFFIX}
MASTER_SG_NAME
=
"kubernetes-master-
${
CLUSTER_ID
}
"
MINION_SG_NAME
=
"kubernetes-minion-
${
CLUSTER_ID
}
"
# Be sure to map all the ephemeral drives. We can specify more than we actually have.
# TODO: Actually mount the correct number (especially if we have more), though this is non-trivial, and
# only affects the big storage instance types, which aren't a typical use case right now.
BLOCK_DEVICE_MAPPINGS
=
"[{
\"
DeviceName
\"
:
\"
/dev/sdb
\"
,
\"
VirtualName
\"
:
\"
ephemeral0
\"
},{
\"
DeviceName
\"
:
\"
/dev/sdc
\"
,
\"
VirtualName
\"
:
\"
ephemeral1
\"
},{
\"
DeviceName
\"
:
\"
/dev/sdd
\"
,
\"
VirtualName
\"
:
\"
ephemeral2
\"
},{
\"
DeviceName
\"
:
\"
/dev/sde
\"
,
\"
VirtualName
\"
:
\"
ephemeral3
\"
}]"
function
json_val
{
python
-c
'import json,sys;obj=json.load(sys.stdin);print obj'
$1
''
}
...
...
@@ -692,6 +697,7 @@ function kube-up {
--key-name
${
AWS_SSH_KEY_NAME
}
\
--security-group-ids
${
MASTER_SG_ID
}
\
--associate-public-ip-address
\
--block-device-mappings
"
${
BLOCK_DEVICE_MAPPINGS
}
"
\
--user-data
file://
${
KUBE_TEMP
}
/master-start.sh | json_val
'["Instances"][0]["InstanceId"]'
)
add-tag
$master_id
Name
$MASTER_NAME
add-tag
$master_id
Role
$MASTER_TAG
...
...
@@ -773,6 +779,7 @@ function kube-up {
--key-name
${
AWS_SSH_KEY_NAME
}
\
--security-group-ids
${
MINION_SG_ID
}
\
${
public_ip_option
}
\
--block-device-mappings
"
${
BLOCK_DEVICE_MAPPINGS
}
"
\
--user-data
"file://
${
KUBE_TEMP
}
/minion-user-data-
${
i
}
"
| json_val
'["Instances"][0]["InstanceId"]'
)
add-tag
$minion_id
Name
${
MINION_NAMES
[
$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