Template for convoy to support AWS EFS (#220)

* template for convoy to support AWS EFS

* Updated to set to rancher/convoy-agent:v0.10.0

* Removed Readme.md
This commit is contained in:
chrisurwin
2016-08-10 20:45:14 +01:00
committed by Bill Maxwell
parent d36a0b65cb
commit e852d949df
4 changed files with 241 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
convoy-efs:
labels:
io.rancher.container.create_agent: 'true'
io.rancher.scheduler.global: 'true'
privileged: true
pid: host
volumes:
- /lib/modules:/lib/modules:ro
- /proc:/host/proc
- /var/run:/host/var/run
- /run:/host/run
- /etc/docker/plugins:/etc/docker/plugins
image: rancher/convoy-agent:v0.10.0
command: volume-agent-efs
convoy-efs-storagepool:
labels:
io.rancher.container.create_agent: 'true'
image: rancher/convoy-agent:v0.10.0
volumes:
- /var/run:/host/var/run
- /run:/host/run
command: storagepool-agent
@@ -0,0 +1,53 @@
.catalog:
name: "Convoy EFS"
version: "v0.1.0"
description: "Convoy EFS - Docker volume plugin"
questions:
- variable: "EFS_ID"
description: "FS ID of AWS EFS"
label: "EFS ID"
required: true
type: "string"
- variable: "AWS_REGION"
description: "AWS Region"
label: "AWS Region"
required: true
type: enum
options:
- eu-west-1
- us-east-1
- us-west-2
- variable: "MOUNT_DIR"
label: "Mount Directory"
description: "The directory on the EFS server to mount"
type: "string"
required: true
convoy-efs:
metadata:
efs_id: "${EFS_ID}"
mount_dir: "${MOUNT_DIR}"
mount_opts: "${MOUNT_OPTS}"
aws_region: "${AWS_REGION}"
health_check:
request_line: GET /healthcheck HTTP/1.0
port: 10241
interval: 2000
response_timeout: 2000
unhealthy_threshold: 3
healthy_threshold: 2
convoy-efs-storagepool:
metadata:
efs_id: "${EFS_ID}"
mount_dir: "${MOUNT_DIR}"
mount_opts: "${MOUNT_OPTS}"
aws_region: "${AWS_REGION}"
scale: 1
health_check:
request_line: GET /healthcheck HTTP/1.0
port: 10241
interval: 2000
response_timeout: 2000
unhealthy_threshold: 3
healthy_threshold: 2