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
cde44bc0
Commit
cde44bc0
authored
Oct 19, 2016
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mount disk in kubemark earlier
parent
6b7ddc56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
start-kubemark-master.sh
test/kubemark/start-kubemark-master.sh
+2
-6
No files found.
test/kubemark/start-kubemark-master.sh
View file @
cde44bc0
...
...
@@ -48,16 +48,12 @@ function mount-master-pd() {
# persistent data, and link them to where they're used.
mkdir
-p
"
${
mount_point
}
"
device
=
$1
mountpoint
=
$2
# Format only if the disk is not already formatted.
if
!
tune2fs
-l
"
${
pd_path
}
"
;
then
echo
"Formatting '
${
pd_path
}
'"
mkfs.ext4
-F
-E
lazy_itable_init
=
0,lazy_journal_init
=
0,discard
"
${
pd_path
}
"
fi
mkdir
-p
"
${
mount_point
}
"
echo
"Mounting '
${
pd_path
}
' at '
${
mount_point
}
'"
mount
-o
discard,defaults
"
${
pd_path
}
"
"
${
mount_point
}
"
echo
"Mounted master-pd '
${
pd_path
}
' at '
${
mount_point
}
'"
...
...
@@ -78,6 +74,8 @@ function mount-master-pd() {
fi
}
mount-master-pd
if
[
"
${
EVENT_STORE_IP
}
"
==
"127.0.0.1"
]
;
then
# Retry starting etcd to avoid pulling image errors.
retry
sudo
docker run
--net
=
host
\
...
...
@@ -101,8 +99,6 @@ retry sudo docker run --net=host \
# Increase the allowed number of open file descriptors
ulimit
-n
65536
mount-master-pd
tar
xzf kubernetes-server-linux-amd64.tar.gz
kubernetes/server/bin/kube-scheduler
--master
=
127.0.0.1:8080
$(
cat
scheduler_flags
)
&> /var/log/kube-scheduler.log &
...
...
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