community-catalog/templates/minio/0/rancher-compose.yml
disaster37 a7e4012930 Add Minio Cloud Storage on Cattle community Catalog (#436)
* Add minio

* Fix docker compose

* Fix minio template

* Fix minio template

* Fix minio template

* Fix version for docker image

* Convert docker-compose to v2 syntax and fix readme

* Fix error on docker-compose

* Fix error on docker-compose

* Fix error on docker-compose

* Fix error on docker-compose

* Fix error on docker-compose

* Fix docker file

* Use templating for minio

* Use templating for minio

* Use templating for minio

* Use templating for minio

* Use templating for minio

* Upgrade to minio 2017-03-16

* fix minio image

* Try to fix template

* Add sevices on rancher-compose and use normal macro on docker-compose

* Add options for loadbalancer and for publish port

* Add options for loadbalancer and for publish port

* Add options for loadbalancer and for publish port

* Add options for loadbalancer and for publish port

* Add options for loadbalancer and for publish port

* Fix indentation

* Try to fix kind of bug

* Fix minio image about default disk

* Append tpl on templatz files

* Template seems not supported on rancher-compose

* Remove .tpl because not working

* Append tpl on templatz files

* Append tpl on template files

* Replace volume-from per local volume

* Add rancher version requierement on template

* Remove Rancher version requierement on main config
2017-03-31 11:53:37 -07:00

115 lines
2.7 KiB
YAML

version: '2'
catalog:
name: Minio
version: 2017-03-16-rancher1
minimum_rancher_version: v1.5.0
questions:
- variable: "MINIO_SCALE"
description: "Number of minio nodes."
label: "Minio Nodes"
required: true
default: 1
type: enum
options:
- 1
- 4
- 6
- 8
- 10
- 12
- 14
- 16
- variable: "MINIO_DISKS"
description: "Number of disks per node"
label: "Disks Per Node"
required: true
type: enum
default: 1
options:
- 1
- 2
- 4
- variable: "DISK_BASE_NAME"
description: "The base name for each disk"
label: "Disk base name"
type: "string"
required: true
default: "disk"
- variable: "VOLUME_DRIVER"
description: "Docker driver to store volume or base path for each disks"
label: "Volume drver / Path"
type: "string"
required: true
default: "local"
- variable: "MINIO_ACCESS_KEY"
description: "The key to connect on minio"
label: "Minio key"
required: true
type: "string"
- variable: "MINIO_SECRET_KEY"
description: "The secret key to connect on minio"
label: "Minio secret key"
required: true
type: "password"
- variable: "DEPLOY_LB"
description: "Deploy Loadbalancer"
label: "Deploy Loadbalancer"
required: true
type: enum
default: "true"
options:
- "true"
- "false"
- variable: "PUBLISH_PORT"
description: "Set port if you want publish external port for minio or Loadbalancer"
label: "Publish port"
required: false
type: "string"
default: "9000"
- variable: "CONFD_BACKEND"
description: "The confd backend to grab config"
label: "Confd backend"
required: true
default: "env"
type: "string"
- variable: "CONFD_NODES"
description: "The confd nodes"
label: "Confd nodes"
required: false
type: "string"
- variable: "CONFD_PREFIX"
description: "The confd prefix"
label: "Confd prefix"
required: true
default: "/minio"
type: "string"
services:
minio-server:
scale: ${MINIO_SCALE}
retain_ip: true
health_check:
port: 9000
interval: 5000
unhealthy_threshold: 3
request_line: ''
healthy_threshold: 2
response_timeout: 5000
lb:
scale: 1
start_on_create: true
lb_config:
certs: []
port_rules:
- priority: 1
protocol: http
service: minio-server
source_port: 9000
target_port: 9000
health_check:
response_timeout: 2000
healthy_threshold: 2
port: 42
unhealthy_threshold: 3
interval: 2000