diff options
author | solsson <solsson@gmail.com> | 2018-02-03 14:53:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-03 14:53:58 +0100 |
commit | 85ef561428d2721f03cf3c33b8e277d395ef90e2 (patch) | |
tree | 5eaa0a448abe064774182a3fbfabf36e790768a7 /kafka/test/kafkacat.yml | |
parent | 467fbb9010c11fd5c2c8e95a2d5f146c356c85a4 (diff) | |
parent | 77cdb3643a268abf98e9b9859218bebb08283b14 (diff) | |
download | kubernetes-kafka-85ef561428d2721f03cf3c33b8e277d395ef90e2.tar.gz kubernetes-kafka-85ef561428d2721f03cf3c33b8e277d395ef90e2.tar.bz2 kubernetes-kafka-85ef561428d2721f03cf3c33b8e277d395ef90e2.zip |
Merge pull request #140 from Yolean/fix-offset-topic-replication
Set internal replication factors to match default and min.insync.replicas
Diffstat (limited to 'kafka/test/kafkacat.yml')
-rw-r--r-- | kafka/test/kafkacat.yml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/kafka/test/kafkacat.yml b/kafka/test/kafkacat.yml index 98410bc..d3c2766 100644 --- a/kafka/test/kafkacat.yml +++ b/kafka/test/kafkacat.yml @@ -91,6 +91,7 @@ metadata: name: kafkacat namespace: test-kafka spec: + # Note that this test sets a consumer group, but asserts assume that the tests gets its own messages replicas: 1 selector: matchLabels: @@ -101,12 +102,6 @@ spec: labels: test-target: kafka-client-kafkacat test-type: readiness - # for example: - # readonly - can be used in production - # isolated - read/write but in a manner that does not affect other services - # load - unsuitable for production because it uses significant resources - # chaos - unsuitable for production because it injects failure modes - #test-use: spec: containers: - name: producer @@ -133,11 +128,13 @@ spec: env: - name: BOOTSTRAP value: bootstrap.kafka:9092 + - name: CONSUMER_GROUP_ID + value: test-kafkacat-group command: - /bin/bash - -cex - > - kafkacat -C -b $BOOTSTRAP -t test-kafkacat -o -1 -f '%T;%k:%p;%o;%s\n' -u -d broker | + kafkacat -b $BOOTSTRAP -G $CONSUMER_GROUP_ID test-kafkacat -o -1 -f '%T;%k:%p;%o;%s\n' -u -d broker | tee /shared/consumed.tmp ; volumeMounts: |