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
34ca69cd
Commit
34ca69cd
authored
Nov 03, 2015
by
Karl Isenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade mesos/docker cluster to docker-compose 1.5.0
- Migrate to the new env var interpolation syntax (backwards incompatibile)
parent
c2487374
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
25 deletions
+14
-25
docker-compose.yml
cluster/mesos/docker/docker-compose.yml
+13
-24
Dockerfile
cluster/mesos/docker/test/Dockerfile
+1
-1
No files found.
cluster/mesos/docker/docker-compose.yml
View file @
34ca69cd
...
...
@@ -35,14 +35,14 @@ mesosslave:
-
bash
-
-xc
-
>
NAME=$
(cut -f2 -d/ <<<
${MESOSMASTER1_NAME}) &&
N=${NAME##*_} &&
DOCKER_NETWORK_OFFSET=0.0.${N}.0
NAME=$
$(cut -f2 -d/ <<<$
${MESOSMASTER1_NAME}) &&
N=$
$
{NAME##*_} &&
DOCKER_NETWORK_OFFSET=0.0.$
$
{N}.0
exec wrapdocker mesos-slave
--work_dir="/var/tmp/mesos/${N}"
--attributes="rack:$
{N};gen:201
${N}"
--hostname=$(getent hosts mesosslave | cut -d' ' -f1 | sort -u | tail -1)
command
:
~
--work_dir="/var/tmp/mesos/$
$
{N}"
--attributes="rack:$
${N};gen:201$
${N}"
--hostname=$
$
(getent hosts mesosslave | cut -d' ' -f1 | sort -u | tail -1)
command
:
[]
environment
:
-
MESOS_MASTER=mesosmaster1:5050
-
MESOS_PORT=5051
...
...
@@ -66,13 +66,13 @@ apiserver:
-
/bin/bash
-
"
-ceu"
-
>
echo "Hostname: $
(hostname -f) (
$(hostname -f | xargs resolveip))" &&
echo "Hostname: $
$(hostname -f) ($
$(hostname -f | xargs resolveip))" &&
(grep "mesos-master\s*=" /opt/mesos-cloud.conf || echo " mesos-master = mesosmaster1:5050" >> /opt/mesos-cloud.conf) &&
await-health-check "-t=${MESOS_DOCKER_ETCD_TIMEOUT}" http://etcd:4001/health &&
await-health-check "-t=${MESOS_DOCKER_MESOS_TIMEOUT}" http://mesosmaster1:5050/health &&
await-file "-t=${KUBE_KEYGEN_TIMEOUT}" /var/run/kubernetes/auth/apiserver.crt &&
km apiserver
--address=$(resolveip apiserver)
--address=$
$
(resolveip apiserver)
--external-hostname=apiserver
--etcd-servers=http://etcd:4001
--port=8888
...
...
@@ -90,10 +90,6 @@ apiserver:
--runtime-config=experimental/v1alpha1
--v=4
ports
:
[
"
8888:8888"
,
"
6443:6443"
]
environment
:
-
MESOS_DOCKER_ETCD_TIMEOUT
-
MESOS_DOCKER_MESOS_TIMEOUT
-
KUBE_KEYGEN_TIMEOUT
volumes
:
-
${MESOS_DOCKER_WORK_DIR}/auth:/var/run/kubernetes/auth:ro
links
:
...
...
@@ -106,20 +102,17 @@ controller:
-
/bin/bash
-
"
-ceu"
-
>
echo "Hostname: $
(hostname -f) (
$(hostname -f | xargs resolveip))" &&
echo "Hostname: $
$(hostname -f) ($
$(hostname -f | xargs resolveip))" &&
(grep "mesos-master\s*=" /opt/mesos-cloud.conf || echo " mesos-master = mesosmaster1:5050" >> /opt/mesos-cloud.conf) &&
await-health-check "-t=${MESOS_DOCKER_MESOS_TIMEOUT}" http://mesosmaster1:5050/health &&
await-health-check "-t=${MESOS_DOCKER_API_TIMEOUT}" http://apiserver:8888/healthz &&
km controller-manager
--address=$(resolveip controller)
--address=$
$
(resolveip controller)
--master=http://apiserver:8888
--cloud-config=/opt/mesos-cloud.conf
--service-account-private-key-file=/var/run/kubernetes/auth/service-accounts.key
--root-ca-file=/var/run/kubernetes/auth/root-ca.crt
--v=4
environment
:
-
MESOS_DOCKER_MESOS_TIMEOUT
-
MESOS_DOCKER_API_TIMEOUT
volumes
:
-
${MESOS_DOCKER_WORK_DIR}/auth:/var/run/kubernetes/auth:ro
links
:
...
...
@@ -132,13 +125,13 @@ scheduler:
-
/bin/bash
-
"
-ceu"
-
>
echo "Hostname: $
(hostname -f) (
$(hostname -f | xargs resolveip))" &&
echo "Hostname: $
$(hostname -f) ($
$(hostname -f | xargs resolveip))" &&
(grep "mesos-master\s*=" /opt/mesos-cloud.conf || echo " mesos-master = mesosmaster1:5050" >> /opt/mesos-cloud.conf) &&
await-health-check "-t=${MESOS_DOCKER_ETCD_TIMEOUT}" http://etcd:4001/health &&
await-health-check "-t=${MESOS_DOCKER_MESOS_TIMEOUT}" http://mesosmaster1:5050/health &&
await-health-check "-t=${MESOS_DOCKER_API_TIMEOUT}" http://apiserver:8888/healthz &&
km scheduler
--address=$(resolveip scheduler)
--address=$
$
(resolveip scheduler)
--hostname-override=scheduler
--etcd-servers=http://etcd:4001
--mesos-user=root
...
...
@@ -151,10 +144,6 @@ scheduler:
--v=4
--executor-logv=4
--profiling=true
environment
:
-
MESOS_DOCKER_ETCD_TIMEOUT
-
MESOS_DOCKER_MESOS_TIMEOUT
-
MESOS_DOCKER_API_TIMEOUT
links
:
-
etcd
-
mesosmaster1
...
...
cluster/mesos/docker/test/Dockerfile
View file @
34ca69cd
...
...
@@ -36,7 +36,7 @@ RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 581
&&
\
apt-get clean
RUN
pip
install
-U
docker-compose
RUN
pip
install
-U
docker-compose
==
1.5.0
RUN
go get github.com/tools/godep
...
...
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