aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--10broker-config.yml3
-rw-r--r--50kafka.yml2
-rw-r--r--test/basic-produce-consume.yml28
-rw-r--r--test/basic-with-kafkacat.yml5
-rw-r--r--zookeeper/50pzoo.yml4
-rw-r--r--zookeeper/51zoo.yml4
6 files changed, 33 insertions, 13 deletions
diff --git a/10broker-config.yml b/10broker-config.yml
index 2af1ae1..c0c4c8c 100644
--- a/10broker-config.yml
+++ b/10broker-config.yml
@@ -59,9 +59,6 @@ data:
#init#broker.rack=#init#
- # Switch to enable topic deletion or not, default value is false
- delete.topic.enable=true
-
############################# Socket Server Settings #############################
# The address the socket server listens on. It will get the value returned from
diff --git a/50kafka.yml b/50kafka.yml
index 34f68df..e4451fd 100644
--- a/50kafka.yml
+++ b/50kafka.yml
@@ -35,7 +35,7 @@ spec:
mountPath: /etc/kafka
containers:
- name: broker
- image: solsson/kafka:0.11.0.1@sha256:1b6b25ea30a93d0d9dc69eb4531d7246d72df4015bbb5baa5bb551a77011bed5
+ image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
env:
- name: KAFKA_LOG4J_OPTS
value: -Dlog4j.configuration=file:/etc/kafka/log4j.properties
diff --git a/test/basic-produce-consume.yml b/test/basic-produce-consume.yml
index 20bb276..32ec4ec 100644
--- a/test/basic-produce-consume.yml
+++ b/test/basic-produce-consume.yml
@@ -36,7 +36,31 @@ data:
#pkill java
exit 0
-
+---
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: basic-produce-consume
+ namespace: test-kafka
+spec:
+ template:
+ spec:
+ containers:
+ - name: topic-create
+ image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
+ command:
+ - ./bin/kafka-topics.sh
+ - --zookeeper
+ - zookeeper.kafka.svc.cluster.local:2181
+ - --create
+ - --if-not-exists
+ - --topic
+ - test-basic-produce-consume
+ - --partitions
+ - "1"
+ - --replication-factor
+ - "2"
+ restartPolicy: Never
---
apiVersion: apps/v1beta1
kind: Deployment
@@ -53,7 +77,7 @@ spec:
spec:
containers:
- name: testcase
- image: solsson/kafka:0.11.0.1@sha256:1b6b25ea30a93d0d9dc69eb4531d7246d72df4015bbb5baa5bb551a77011bed5
+ image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
env:
- name: BOOTSTRAP
value: kafka-0.broker.kafka.svc.cluster.local:9092,kafka-1.broker.kafka.svc.cluster.local:9092,kafka-2.broker.kafka.svc.cluster.local:9092
diff --git a/test/basic-with-kafkacat.yml b/test/basic-with-kafkacat.yml
index c5a2503..78e423c 100644
--- a/test/basic-with-kafkacat.yml
+++ b/test/basic-with-kafkacat.yml
@@ -23,7 +23,6 @@ data:
kafkacat -C -b $BOOTSTRAP -t test-basic-with-kafkacat -o -1 -e | grep $unique
exit 0
-
---
apiVersion: batch/v1
kind: Job
@@ -35,7 +34,7 @@ spec:
spec:
containers:
- name: topic-create
- image: solsson/kafka:0.11.0.1@sha256:1b6b25ea30a93d0d9dc69eb4531d7246d72df4015bbb5baa5bb551a77011bed5
+ image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
command:
- ./bin/kafka-topics.sh
- --zookeeper
@@ -47,7 +46,7 @@ spec:
- --partitions
- "1"
- --replication-factor
- - "1"
+ - "2"
restartPolicy: Never
---
apiVersion: apps/v1beta1
diff --git a/zookeeper/50pzoo.yml b/zookeeper/50pzoo.yml
index 5848b2f..446748a 100644
--- a/zookeeper/50pzoo.yml
+++ b/zookeeper/50pzoo.yml
@@ -16,7 +16,7 @@ spec:
terminationGracePeriodSeconds: 10
initContainers:
- name: init-config
- image: solsson/kafka:0.11.0.1@sha256:1b6b25ea30a93d0d9dc69eb4531d7246d72df4015bbb5baa5bb551a77011bed5
+ image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
command: ['/bin/bash', '/etc/kafka/init.sh']
volumeMounts:
- name: config
@@ -25,7 +25,7 @@ spec:
mountPath: /var/lib/zookeeper/data
containers:
- name: zookeeper
- image: solsson/kafka:0.11.0.1@sha256:1b6b25ea30a93d0d9dc69eb4531d7246d72df4015bbb5baa5bb551a77011bed5
+ image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
env:
- name: KAFKA_LOG4J_OPTS
value: -Dlog4j.configuration=file:/etc/kafka/log4j.properties
diff --git a/zookeeper/51zoo.yml b/zookeeper/51zoo.yml
index fb2b741..a2922ef 100644
--- a/zookeeper/51zoo.yml
+++ b/zookeeper/51zoo.yml
@@ -16,7 +16,7 @@ spec:
terminationGracePeriodSeconds: 10
initContainers:
- name: init-config
- image: solsson/kafka:0.11.0.1@sha256:1b6b25ea30a93d0d9dc69eb4531d7246d72df4015bbb5baa5bb551a77011bed5
+ image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
command: ['/bin/bash', '/etc/kafka/init.sh']
env:
- name: ID_OFFSET
@@ -28,7 +28,7 @@ spec:
mountPath: /var/lib/zookeeper/data
containers:
- name: zookeeper
- image: solsson/kafka:0.11.0.1@sha256:1b6b25ea30a93d0d9dc69eb4531d7246d72df4015bbb5baa5bb551a77011bed5
+ image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
env:
- name: KAFKA_LOG4J_OPTS
value: -Dlog4j.configuration=file:/etc/kafka/log4j.properties