diff --git a/templates/zookeeper-rancher/0/README.md b/templates/zookeeper-rancher/0/README.md new file mode 100644 index 0000000..83384de --- /dev/null +++ b/templates/zookeeper-rancher/0/README.md @@ -0,0 +1,19 @@ +# Apache Zookeeper (Experimental) + + +### Info: + + This template creates a multinode Zookeeper cluster on top of Rancher. The configuration is generated from Rancher metadata. Cluster size is fixed after deployment. A node can not be added without losing quorem. + + This image is based off of Debian. + +### Usage: + + Select Apache Zookeeper from catalog. + + Enter in the number of nodes for the cluster. This should be an odd number. + + Click deploy. + + Zookeeper can now be accessed over the Rancher network. + diff --git a/templates/zookeeper-rancher/0/answer.txt b/templates/zookeeper-rancher/0/answer.txt new file mode 100644 index 0000000..4f5d217 --- /dev/null +++ b/templates/zookeeper-rancher/0/answer.txt @@ -0,0 +1 @@ +scale=3 diff --git a/templates/zookeeper-rancher/0/docker-compose.yml b/templates/zookeeper-rancher/0/docker-compose.yml new file mode 100644 index 0000000..f1b473f --- /dev/null +++ b/templates/zookeeper-rancher/0/docker-compose.yml @@ -0,0 +1,11 @@ +zookeeper-conf: + image: rancher/zookeeper-config:v0.2.0 + volumes_from: + - zookeeper + net: "container:zookeeper" +zookeeper: + image: rancher/zookeeper:3.4.6-2 + labels: + io.rancher.sidekicks: zookeeper-conf + volumes: + - /opt/rancher diff --git a/templates/zookeeper-rancher/0/rancher-compose.yml b/templates/zookeeper-rancher/0/rancher-compose.yml new file mode 100644 index 0000000..3508054 --- /dev/null +++ b/templates/zookeeper-rancher/0/rancher-compose.yml @@ -0,0 +1,18 @@ +.catalog: + name: Zookeeper + version: 3.4.6-rancher1 + projectURL: https://github.com/rancher/compose-templates + maintainer: Rancher Labs + description: | + (Experimental) Apache Zookeeper cluster. + minimum_rancher_version: v0.46.0 + questions: + - variable: "scale" + description: "Number of Zookeeper nodes. Note: it should be an odd number" + label: "Number of Nodes:" + required: true + default: 3 + type: "int" +zookeeper: + scale: ${scale} + retain_ip: true diff --git a/templates/zookeeper-rancher/catalogIcon-zookeeper.png b/templates/zookeeper-rancher/catalogIcon-zookeeper.png new file mode 100644 index 0000000..df751f4 Binary files /dev/null and b/templates/zookeeper-rancher/catalogIcon-zookeeper.png differ diff --git a/templates/zookeeper-rancher/config.yml b/templates/zookeeper-rancher/config.yml new file mode 100644 index 0000000..b801bfd --- /dev/null +++ b/templates/zookeeper-rancher/config.yml @@ -0,0 +1,5 @@ +name: Apache Zookeeper +description: | + (Experimental) Zookeeper cluster +version: 3.4.6-rancher1 +category: Clustering