Added kafka package for kubernetes. Some bugfixes for cattle packages

This commit is contained in:
Raul Sanchez
2016-09-29 22:56:42 +02:00
parent 37dba8043b
commit 7bd642ced5
10 changed files with 292 additions and 18 deletions
+8 -6
View File
@@ -14,12 +14,14 @@
Change the following kafka default parameters, if you need:
- KAFKA_LOG_DIRS="/opt/kafka/logs"
- KAFKA_LOG_RETENTION_HOURS="168"
- KAFKA_NUM_PARTITIONS="1"
- ADVERTISE_PUB_IP= < true | false >
Select zookeeper stack/service to connect to.
- kafka_scale=3 # kafka scale to deploy.
- kafka_mem=512 # kafka broker memory.
- kafka_log_dir="/opt/kafka/logs" # Kafka log dir.
- kafka_log_retention="168" # kafka log retention.
- kafka_num_partitions="1" # Kafka partitions number
- kafka_delete_topics="false" # kafka delete topics
- kafka_pub_ip= < true | false > # Advertise public ip to zookeeper.
- zk_link="kafka-zk/zk" # zookeeper stack/service to connect to.
Click deploy.
+6 -5
View File
@@ -1,6 +1,6 @@
broker:
tty: true
image: rawmind/alpine-kafka:0.10.0.0-2
image: rawmind/alpine-kafka:0.10.0.1
volumes_from:
- broker-volume
- broker-conf
@@ -8,6 +8,7 @@ broker:
- JVMFLAGS=-Xmx${kafka_mem}m -Xms${kafka_mem}m
- CONFD_INTERVAL=${kafka_interval}
- ZK_SERVICE=${zk_link}
- KAFKA_DELETE_TOPICS=${kafka_delete_topics}
- KAFKA_LOG_DIRS=${kafka_log_dir}
- KAFKA_LOG_RETENTION_HOURS=${kafka_log_retention}
- KAFKA_NUM_PARTITIONS=${kafka_num_partitions}
@@ -24,7 +25,9 @@ broker-conf:
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
image: rawmind/rancher-kafka:0.10.0.0
image: rawmind/rancher-kafka:0.10.0.0-3
volumes:
- /opt/tools
broker-volume:
net: none
labels:
@@ -32,12 +35,10 @@ broker-volume:
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
environment:
- SERVICE_USER=kafka
- SERVICE_UID=10003
- SERVICE_GROUP=kafka
- SERVICE_GID=10003
- SERVICE_VOLUME=${kafka_log_dir}
volumes:
- ${kafka_log_dir}
volume_driver: local
image: rawmind/alpine-volume:0.0.1-1
image: rawmind/alpine-volume:0.0.2-1
+19 -6
View File
@@ -1,6 +1,6 @@
.catalog:
name: Kafka
version: 0.10.0.0-rancher1
version: 0.10.0.1-rancher1
description: |
(Experimental) Apache Kafka cluster.
minimum_rancher_version: v0.59.0
@@ -37,6 +37,16 @@
required: true
default: "1"
type: "int"
- variable: "kafka_delete_topics"
label: "Kafka delete topics:"
description: |
Enable delete topics in kafka.
default: false
required: true
type: enum
options:
- false
- true
- variable: "kafka_interval"
description: "Interval to poll/apply configuration changes. 0 to disable"
label: "Broker Interval (s):"
@@ -44,11 +54,14 @@
default: 60
type: "int"
- variable: "kafka_pub_ip"
description: "Advertise host ip in zookeeper"
label: "Advertise host ip:"
required: false
default: false
type: "boolean"
description: "Advertise local and host public ip"
label: "Broker public ip:"
default: false
required: true
type: enum
options:
- false
- true
- variable: "zk_link"
description: |
Choose the Zookeeper service to use.
+2 -1
View File
@@ -1,8 +1,9 @@
name: Apache Kafka
description: |
(Experimental) Kafka cluster
version: 0.10.0.0-rancher1
version: 0.10.0.1-rancher1
category: Clustering
maintainer: "Raul Sanchez <rawmind@gmail.com>"
minimum_rancher_version: v0.59.0
license:
projectURL: https://github.com/rawmind0/alpine-kafka