diff --git a/README.md b/README.md index 2ac5070..6742b8d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Rancher Community Catalog +# Rancher Community Catalog This catalog provides templates created by the community, and they are not maintained or supported by Rancher Labs. @@ -15,4 +15,4 @@ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and -limitations under the License. \ No newline at end of file +limitations under the License. diff --git a/templates/kafka/0/README.md b/templates/kafka/0/README.md new file mode 100644 index 0000000..92d5bfb --- /dev/null +++ b/templates/kafka/0/README.md @@ -0,0 +1,21 @@ +# Apache Kafka (Experimental) + + +### Info: + + This template creates, scale in and scale out a multinodes broker (kafka) cluster on top of Rancher. The configuration is generated with confd from Rancher metadata. + Cluster size are variable after deployment, and get reconfigured if refresh interval > 0. + + +### Usage: + + Select Apache Kafka from catalog. + + Enter the number of nodes, mem, refresh interval broker cluster and zookeeper service to connect. (set refresh data to 0 to disable dinamic config) + + Note: When you scale the cluster, zero downtime is not guaranteed..yet.. + + Click deploy. + + Kafka can now be accessed over the Rancher network. + diff --git a/templates/kafka/0/docker-compose.yml b/templates/kafka/0/docker-compose.yml new file mode 100644 index 0000000..6ab5647 --- /dev/null +++ b/templates/kafka/0/docker-compose.yml @@ -0,0 +1,11 @@ +broker: + tty: true + image: rawmind/rancher-kafka:0.9.0 + volumes: + - /opt/kafka/data + environment: + - JVMFLAGS=-Xmx${kafka_mem}m -Xms${kafka_mem}m + - CONFD_INTERVAL=${kafka_interval} + - ZK_SERVICE=${zk_link} + external_links: + - ${zk_link}:zk diff --git a/templates/kafka/0/rancher-compose.yml b/templates/kafka/0/rancher-compose.yml new file mode 100644 index 0000000..a4f937f --- /dev/null +++ b/templates/kafka/0/rancher-compose.yml @@ -0,0 +1,44 @@ +.catalog: + name: Kafka + version: 0.9.0-rancher1 + description: | + (Experimental) Apache Kafka cluster. + minimum_rancher_version: v0.56.0 + maintainer: "Raul Sanchez " + uuid: kafka-0 + questions: + - variable: "kafka_scale" + description: "Number of brokers nodes. Note: Recommended an odd number" + label: "Broker Nodes:" + required: true + default: 3 + type: "int" + - variable: "kafka_mem" + description: "Amount of memory to config brokers." + label: "Broker Memory (mb):" + required: true + default: 1024 + type: "string" + - variable: "kafka_interval" + description: "Interval to poll/apply configuration changes. 0 to disable" + label: "Broker Interval (s):" + required: true + default: 60 + type: "int" + - variable: "zk_link" + description: | + Choose the Zookeeper service to use. + It's really recommended a dedicated zookeeper service just for Kafka. + label: "Zookeeper stack/service" + default: "kafka-zk/zk" + required: true + type: "service" +broker: + scale: ${kafka_scale} + health_check: + port: 9092 + interval: 5000 + unhealthy_threshold: 3 + request_line: '' + healthy_threshold: 2 + response_timeout: 5000 diff --git a/templates/kafka/catalogIcon-kafka.svg b/templates/kafka/catalogIcon-kafka.svg new file mode 100644 index 0000000..e0056cc --- /dev/null +++ b/templates/kafka/catalogIcon-kafka.svg @@ -0,0 +1,28 @@ + + + + + + + diff --git a/templates/kafka/config.yml b/templates/kafka/config.yml new file mode 100644 index 0000000..ab7404a --- /dev/null +++ b/templates/kafka/config.yml @@ -0,0 +1,8 @@ +name: Apache Kafka +description: | + (Experimental) Kafka cluster +version: 0.8.2-rancher1 +category: clustering +maintainer: "Raul Sanchez " +minimum_rancher_version: v0.56.0 +license: diff --git a/templates/zookeeper/0/README.md b/templates/zookeeper/0/README.md new file mode 100644 index 0000000..74a313c --- /dev/null +++ b/templates/zookeeper/0/README.md @@ -0,0 +1,21 @@ +# Apache Zookeeper (Experimental) + + +### Info: + + This template creates, scale in and scale out a multinodes zk (zookeeper) cluster on top of Rancher. The configuration is generated with confd from Rancher metadata. + Cluster size are variable after deployment, and get reconfigured if refresh interval > 0. + + +### Usage: + + Select Apache Zookeeper from catalog. + + Enter the number of nodes, mem and refresh interval for the zk cluster. (set refresh data to 0 to disable dinamic config) + + Note: When you scale the cluster, zero downtime is not guaranteed..yet.. + + Click deploy. + + Zookeeper can now be accessed over the Rancher network. + diff --git a/templates/zookeeper/0/docker-compose.yml b/templates/zookeeper/0/docker-compose.yml new file mode 100644 index 0000000..fc4ae5d --- /dev/null +++ b/templates/zookeeper/0/docker-compose.yml @@ -0,0 +1,8 @@ +zk: + tty: true + image: rawmind/rancher-zk:3.4.6-1 + volumes: + - /opt/zk/data + environment: + - JVMFLAGS=-Xmx${zk_mem}m -Xms${zk_mem}m + - CONFD_INTERVAL=${zk_interval} diff --git a/templates/zookeeper/0/rancher-compose.yml b/templates/zookeeper/0/rancher-compose.yml new file mode 100644 index 0000000..1c4bcf2 --- /dev/null +++ b/templates/zookeeper/0/rancher-compose.yml @@ -0,0 +1,36 @@ +.catalog: + name: Zookeeper + version: 3.4.6-rancher1 + description: | + (Experimental) Apache Zookeeper cluster. + minimum_rancher_version: v0.56.0 + maintainer: "Raul Sanchez " + uuid: zk-0 + questions: + - variable: "zk_scale" + description: "Number of zk nodes. Note: Recommended an odd number" + label: "Zk Nodes:" + required: true + default: 3 + type: "int" + - variable: "zk_mem" + description: "Amount of memory to config zk." + label: "Zk Memory (mb):" + required: true + default: 512 + type: "string" + - variable: "zk_interval" + description: "Interval to poll/apply configuration changes. 0 to disable, reconfiguration will be done when you restart zk nodes" + label: "Zk Interval (s):" + required: true + default: 60 + type: "int" +zk: + scale: ${zk_scale} + health_check: + port: 2181 + interval: 5000 + unhealthy_threshold: 3 + request_line: '' + healthy_threshold: 2 + response_timeout: 5000 diff --git a/templates/zookeeper/catalogIcon-zookeeper.png b/templates/zookeeper/catalogIcon-zookeeper.png new file mode 100644 index 0000000..df751f4 Binary files /dev/null and b/templates/zookeeper/catalogIcon-zookeeper.png differ diff --git a/templates/zookeeper/config.yml b/templates/zookeeper/config.yml new file mode 100644 index 0000000..995a7d2 --- /dev/null +++ b/templates/zookeeper/config.yml @@ -0,0 +1,8 @@ +name: Apache Zookeeper +description: | + (Experimental) Zookeeper cluster +version: 3.4.6-rancher1 +category: clustering +maintainer: "Raul Sanchez " +minimum_rancher_version: v0.56.0 +license: