add convoy-gluster

This commit is contained in:
LLParse
2016-03-25 09:16:06 -07:00
parent 4ba17efe58
commit 003dcd57b5
6 changed files with 383 additions and 0 deletions
@@ -0,0 +1,23 @@
convoy-gluster:
labels:
io.rancher.container.create_agent: 'true'
io.rancher.scheduler.global: 'true'
io.rancher.scheduler.affinity:host_label_soft: ${HOST_LABEL}
privileged: true
pid: host
volumes:
- /lib/modules:/lib/modules:ro
- /proc:/host/proc
- /var/run:/host/var/run
- /etc/docker/plugins:/etc/docker/plugins
external_links:
- "${GLUSTERFS_SERVICE}:glusterfs"
image: rancher/convoy-agent:v0.1.2
command: volume-agent-glusterfs
convoy-gluster-storagepool:
labels:
io.rancher.container.create_agent: 'true'
io.rancher.scheduler.affinity:host_label_soft: ${HOST_LABEL}
image: rancher/convoy-agent:v0.1.2
command: storagepool-agent
@@ -0,0 +1,43 @@
.catalog:
name: "Convoy GlusterFS"
version: "v0.1"
description: "Convoy GlusterFS - Docker volume plugin"
questions:
- variable: "VOLUME_POOL"
description: "Name of the GlusterFS Volume"
label: "GlusterFS Volume"
required: true
type: "string"
default: my_vol
- variable: "HOST_LABEL"
label: "Host label"
description: "Specify a Rancher host label here that will be used to determine where the Convoy GlusterFS service is deploy. This will determine what hosts can access the volumes managed by this stack."
type: "string"
default: convoy.glusterfs=true
required: true
- variable: "GLUSTERFS_SERVICE"
label: "GlusterFS Service"
type: "service"
required: true
description: Service that is running GlusterFS
convoy-gluster:
metadata:
volume_pool: "${VOLUME_POOL}"
health_check:
request_line: GET /healthcheck HTTP/1.0
port: 10241
interval: 2000
response_timeout: 2000
unhealthy_threshold: 3
healthy_threshold: 2
convoy-gluster-storagepool:
scale: 1
health_check:
request_line: GET /healthcheck HTTP/1.0
port: 10241
interval: 2000
response_timeout: 2000
unhealthy_threshold: 3
healthy_threshold: 2