diff --git a/templates/convoy-efs/0/docker-compose.yml b/templates/convoy-efs/0/docker-compose.yml new file mode 100644 index 0000000..93a009c --- /dev/null +++ b/templates/convoy-efs/0/docker-compose.yml @@ -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 diff --git a/templates/convoy-efs/0/rancher-compose.yml b/templates/convoy-efs/0/rancher-compose.yml new file mode 100644 index 0000000..1fa8224 --- /dev/null +++ b/templates/convoy-efs/0/rancher-compose.yml @@ -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 diff --git a/templates/convoy-efs/catalogIcon-convoy.svg b/templates/convoy-efs/catalogIcon-convoy.svg new file mode 100644 index 0000000..83b3c00 --- /dev/null +++ b/templates/convoy-efs/catalogIcon-convoy.svg @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/convoy-efs/config.yml b/templates/convoy-efs/config.yml new file mode 100644 index 0000000..a001525 --- /dev/null +++ b/templates/convoy-efs/config.yml @@ -0,0 +1,5 @@ +name: Convoy EFS +description: | + Docker Volume Manager for AWS EFS-backed Volumes +version: v0.1.0 +category: Rancher Services