diff options
author | Staffan Olsson <staffan@repos.se> | 2017-11-05 11:31:35 +0100 |
---|---|---|
committer | Staffan Olsson <staffan@repos.se> | 2017-11-05 11:46:16 +0100 |
commit | b8bfda82fe8dd529e1ca278d354be103814f918a (patch) | |
tree | a063bb7c1ebc6382fab26cd90ddedffc16ebb14f | |
parent | 96641a0b8ffa627bbb187bbb293ae056487ba685 (diff) | |
download | kubernetes-kafka-b8bfda82fe8dd529e1ca278d354be103814f918a.tar.gz kubernetes-kafka-b8bfda82fe8dd529e1ca278d354be103814f918a.tar.bz2 kubernetes-kafka-b8bfda82fe8dd529e1ca278d354be103814f918a.zip |
Changes replication-factor for test topics to 2 ...
because 1 is useless, as even a normal reschedule of the broker pod
that happens to own the replica+partition will disrupt clients.
Testing with replication-factor=2 but using 3 for production topics
is sensible because we can test with 3 brokers how replication performs.
-rw-r--r-- | test/basic-produce-consume.yml | 26 | ||||
-rw-r--r-- | test/basic-with-kafkacat.yml | 2 |
2 files changed, 26 insertions, 2 deletions
diff --git a/test/basic-produce-consume.yml b/test/basic-produce-consume.yml index f73b1ab..7b30b36 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/v1beta2 kind: Deployment diff --git a/test/basic-with-kafkacat.yml b/test/basic-with-kafkacat.yml index 5d626bc..e72cfbc 100644 --- a/test/basic-with-kafkacat.yml +++ b/test/basic-with-kafkacat.yml @@ -82,7 +82,7 @@ spec: - --partitions - "1" - --replication-factor - - "1" + - "2" restartPolicy: Never --- apiVersion: apps/v1beta2 |