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
a3cb84fa
Commit
a3cb84fa
authored
Jun 26, 2015
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AWS: Wait for disk to be attached in setup-master-pd.sh
parent
6e09cd3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
setup-master-pd.sh
cluster/aws/templates/setup-master-pd.sh
+12
-0
util.sh
cluster/aws/util.sh
+1
-1
No files found.
cluster/aws/templates/setup-master-pd.sh
View file @
a3cb84fa
...
...
@@ -17,6 +17,18 @@
# 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.
echo
"Waiting for master pd to be attached"
attempt
=
0
while
true
;
do
echo
Attempt
"
$((
$attempt
+
1
))
"
to check
for
/dev/xvdb
if
[[
-e
/dev/xvdb
]]
;
then
echo
"Found /dev/xvdb"
break
fi
attempt
=
$((
$attempt
+
1
))
sleep
1
done
# Mount Master Persistent Disk
echo
"Mounting master-pd"
mkdir
-p
/mnt/master-pd
...
...
cluster/aws/util.sh
View file @
a3cb84fa
...
...
@@ -836,7 +836,7 @@ function kube-up {
wait-for-instance-running
$master_id
# This is a race between instance start and volume attachment. There appears to be no way to start an AWS instance with a volume attached.
# T
ODO: W
ait for volume to be ready in setup-master-pd.sh
# T
o work around this, we w
ait for volume to be ready in setup-master-pd.sh
echo
"Attaching peristent data volume (
${
MASTER_DISK_ID
}
) to master"
$AWS_CMD
attach-volume
--volume-id
${
MASTER_DISK_ID
}
--device
/dev/sdb
--instance-id
${
master_id
}
...
...
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