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
|
||||
Reference in New Issue
Block a user