Mesos integration templates
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
master:
|
||||
image: rancher/mesos-master:latest
|
||||
environment:
|
||||
MESOS_CLUSTER: ${MESOS_CLUSTER}
|
||||
MESOS_QUORUM: ${MESOS_QUORUM}
|
||||
MASTER_PORT: ${MASTER_PORT}
|
||||
ZK_SERVICE: ${ZK_SERVICE}
|
||||
ZK_SESSION_TIMEOUT: ${ZK_SESSION_TIMEOUT}
|
||||
ports:
|
||||
- "${MASTER_PORT}:${MASTER_PORT}"
|
||||
labels:
|
||||
mesos: master
|
||||
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
|
||||
io.rancher.scheduler.affinity:container_label_soft_ne: mesos=slave
|
||||
volumes:
|
||||
- /data
|
||||
slave:
|
||||
image: rancher/mesos-slave:latest
|
||||
environment:
|
||||
SLAVE_PORT: ${SLAVE_PORT}
|
||||
ZK_SERVICE: ${ZK_SERVICE}
|
||||
ports:
|
||||
- "${SLAVE_PORT}:${SLAVE_PORT}"
|
||||
labels:
|
||||
mesos: slave
|
||||
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
|
||||
io.rancher.scheduler.affinity:container_label_soft_ne: mesos=master
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /data
|
||||
privileged: true
|
||||
@@ -0,0 +1,69 @@
|
||||
.catalog:
|
||||
name: Mesos
|
||||
version: v1
|
||||
questions:
|
||||
- variable: ZK_SERVICE
|
||||
description: Choose the Zookeeper service to use.
|
||||
label: Zookeeper Service
|
||||
required: true
|
||||
type: service
|
||||
- variable: ZK_SESSION_TIMEOUT
|
||||
description: You may need to increase this in virtualized environments or else zk requests will fail.
|
||||
label: Zookeeper Session Timeout
|
||||
required: true
|
||||
type: string
|
||||
default: 10secs
|
||||
- variable: MESOS_CLUSTER
|
||||
description: Mesos cluster name to appear in the Master UI.
|
||||
label: Cluster Name
|
||||
required: true
|
||||
type: string
|
||||
default: rancher
|
||||
- variable: MESOS_QUORUM
|
||||
description: Mesos Master quorum count is computed as floor( MESOS_MASTERS / 2 )
|
||||
label: Mesos Master Quorum
|
||||
required: true
|
||||
type: int
|
||||
default: 2
|
||||
- variable: MESOS_MASTERS
|
||||
description: Number of Mesos Master nodes to run.
|
||||
label: Mesos Masters
|
||||
required: true
|
||||
type: int
|
||||
default: 3
|
||||
- variable: MASTER_PORT
|
||||
description: Port to expose Mesos masters on.
|
||||
label: Master Port
|
||||
required: true
|
||||
type: int
|
||||
default: 5050
|
||||
- variable: MESOS_SLAVES
|
||||
description: Number of Mesos Slaves to run.
|
||||
label: Mesos Slaves
|
||||
required: true
|
||||
type: int
|
||||
default: 3
|
||||
- variable: SLAVE_PORT
|
||||
description: Port to expose Mesos slaves on.
|
||||
label: Slave Port
|
||||
required: true
|
||||
type: int
|
||||
default: 5051
|
||||
master:
|
||||
scale: ${MESOS_MASTERS}
|
||||
health_check:
|
||||
port: ${MASTER_PORT}
|
||||
interval: 3000
|
||||
unhealthy_threshold: 2
|
||||
healthy_threshold: 2
|
||||
request_line: '/metrics/snapshot'
|
||||
response_timeout: 2000
|
||||
slave:
|
||||
scale: ${MESOS_SLAVES}
|
||||
health_check:
|
||||
port: ${SLAVE_PORT}
|
||||
interval: 5000
|
||||
unhealthy_threshold: 2
|
||||
healthy_threshold: 2
|
||||
request_line: ''
|
||||
response_timeout: 3000
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="-323 267 56 64" style="enable-background:new -323 267 56 64;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#00435A;}
|
||||
.st1{fill:#00AEDE;}
|
||||
.st2{fill:#394D54;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M-281.5,306v-13.8l-11.9,6.9L-281.5,306"/>
|
||||
<path class="st1" d="M-282.2,290.8l-11.9-6.9v13.8L-282.2,290.8"/>
|
||||
<path class="st1" d="M-295.7,297.7v-13.8l-12,6.9L-295.7,297.7"/>
|
||||
<path class="st1" d="M-296.5,282.6l-11.9-6.9v13.9L-296.5,282.6"/>
|
||||
<path class="st0" d="M-282.2,307.3l-11.9-6.9v13.8L-282.2,307.3"/>
|
||||
<path class="st0" d="M-295.7,314.3v-13.8l-12,6.9L-295.7,314.3"/>
|
||||
<path class="st1" d="M-267.9,299.1l-12-6.9V306L-267.9,299.1"/>
|
||||
<path class="st1" d="M-310,289.5v-13.9l-12,6.9L-310,289.5"/>
|
||||
<path class="st0" d="M-296.5,315.6l-11.9-6.9v13.8L-296.5,315.6"/>
|
||||
<path class="st1" d="M-310,322.5v-13.8l-12,6.9L-310,322.5"/>
|
||||
<path class="st0" d="M-296.5,299.1l-11.9-6.9V306L-296.5,299.1"/>
|
||||
<path class="st1" d="M-281.5,289.5v-13.9l-11.9,6.9L-281.5,289.5"/>
|
||||
<path class="st0" d="M-294.2,267.4v13.8l11.9-6.9L-294.2,267.4"/>
|
||||
<path class="st0" d="M-307.7,274.3l12,6.9v-13.8L-307.7,274.3"/>
|
||||
<path class="st0" d="M-282.2,323.8l-11.9-6.9v13.8L-282.2,323.8"/>
|
||||
<path class="st0" d="M-295.7,330.8v-13.8l-12,6.9L-295.7,330.8"/>
|
||||
<path class="st1" d="M-267.2,314.3v-13.8l-11.9,6.9L-267.2,314.3"/>
|
||||
<path class="st1" d="M-310,306v-13.9l-12,6.9L-310,306"/>
|
||||
<path class="st1" d="M-310.8,307.3l-12.1-6.9v13.8L-310.8,307.3"/>
|
||||
<path class="st1" d="M-267.2,297.7v-13.8l-11.9,6.9L-267.2,297.7"/>
|
||||
<path class="st1" d="M-267.9,282.6l-12-6.9v13.9L-267.9,282.6"/>
|
||||
<path class="st1" d="M-267.9,315.6l-12-6.9v13.8L-267.9,315.6"/>
|
||||
<path class="st0" d="M-281.5,322.5v-13.8l-11.9,6.9L-281.5,322.5"/>
|
||||
<path class="st1" d="M-310.8,290.8l-12.1-6.9v13.8L-310.8,290.8"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,8 @@
|
||||
name: Mesos
|
||||
description: |
|
||||
Abstract resources away from machines, enabling
|
||||
fault-tolerant and elastic distributed systems
|
||||
version: v1
|
||||
category: System
|
||||
maintainer: James Oliver <joliver@rancher.com>
|
||||
minimum_rancher_version: v1.0.0
|
||||
Reference in New Issue
Block a user