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
7059f379
Commit
7059f379
authored
Jun 25, 2015
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AWS: Mount persistent disk as sdb on master
parent
66e0c543
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
setup-master-pd.sh
cluster/aws/templates/setup-master-pd.sh
+3
-2
util.sh
cluster/aws/util.sh
+2
-2
No files found.
cluster/aws/templates/setup-master-pd.sh
View file @
7059f379
...
...
@@ -13,14 +13,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Format and mount the disk, create directories on it for all of the master's
# persistent data, and link them to where they're used.
# Mount Master Persistent Disk
echo
"Mounting master-pd"
mkdir
-p
/mnt/master-pd
mkfs
-t
ext4 /dev/xvd
h
echo
"/dev/xvd
h
/mnt/master-pd ext4 noatime 0 0"
>>
/etc/fstab
mkfs
-t
ext4 /dev/xvd
b
echo
"/dev/xvd
b
/mnt/master-pd ext4 noatime 0 0"
>>
/etc/fstab
# Contains all the data stored in etcd
mkdir
-m
700
-p
/mnt/master-pd/var/etcd
...
...
cluster/aws/util.sh
View file @
7059f379
...
...
@@ -55,7 +55,7 @@ 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/sd
b
\"
,
\"
VirtualName
\"
:
\"
ephemeral0
\"
},{
\"
DeviceName
\"
:
\"
/dev/sdc
\"
,
\"
VirtualName
\"
:
\"
ephemeral1
\"
},{
\"
DeviceName
\"
:
\"
/dev/sdd
\"
,
\"
VirtualName
\"
:
\"
ephemeral2
\"
},{
\"
DeviceName
\"
:
\"
/dev/sde
\"
,
\"
VirtualName
\"
:
\"
ephemeral3
\"
}"
BLOCK_DEVICE_MAPPINGS
=
"{
\"
DeviceName
\"
:
\"
/dev/sd
c
\"
,
\"
VirtualName
\"
:
\"
ephemeral0
\"
},{
\"
DeviceName
\"
:
\"
/dev/sdd
\"
,
\"
VirtualName
\"
:
\"
ephemeral1
\"
},{
\"
DeviceName
\"
:
\"
/dev/sde
\"
,
\"
VirtualName
\"
:
\"
ephemeral2
\"
},{
\"
DeviceName
\"
:
\"
/dev/sdf
\"
,
\"
VirtualName
\"
:
\"
ephemeral3
\"
}"
function
json_val
{
python
-c
'import json,sys;obj=json.load(sys.stdin);print obj'
$1
''
...
...
@@ -724,7 +724,7 @@ function kube-up {
# HTTPS to the master is allowed (for API access)
authorize-security-group-ingress
"
${
MASTER_SG_ID
}
"
"--protocol tcp --port 443 --cidr 0.0.0.0/0"
master_volume_mapping
=
"{
\"
DeviceName
\"
:
\"
/dev/sd
h
\"
,
\"
Ebs
\"
:{
\"
DeleteOnTermination
\"
:false,
\"
VolumeSize
\"
:
${
MASTER_DISK_SIZE
}
,
\"
VolumeType
\"
:
\"
${
MASTER_DISK_TYPE
}
\"
}}"
master_volume_mapping
=
"{
\"
DeviceName
\"
:
\"
/dev/sd
b
\"
,
\"
Ebs
\"
:{
\"
DeleteOnTermination
\"
:false,
\"
VolumeSize
\"
:
${
MASTER_DISK_SIZE
}
,
\"
VolumeType
\"
:
\"
${
MASTER_DISK_TYPE
}
\"
}}"
master_block_device_mappings
=
"[
${
master_volume_mapping
}
,
${
BLOCK_DEVICE_MAPPINGS
}
]"
(
...
...
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