diff options
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | test/21consumer-test1.yml | 24 |
2 files changed, 29 insertions, 0 deletions
@@ -67,6 +67,11 @@ This is WIP, but topic creation has been automated. Note that as a [Job](http:// kubectl create -f test/11topic-create-test1.yml ``` +Pods that keep consuming messages (but they won't exit on cluster failures) +``` +kubectl create -f test/21consumer-test1.yml +``` + ## Teardown & cleanup Testing and retesting... delete the namespace. PVs are outside namespaces so delete them too. diff --git a/test/21consumer-test1.yml b/test/21consumer-test1.yml new file mode 100644 index 0000000..aff5944 --- /dev/null +++ b/test/21consumer-test1.yml @@ -0,0 +1,24 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: consumer-test1 + namespace: kafka +spec: + replicas: 1 + template: + metadata: + labels: + app: consumer + scope: test + topic: test1 + spec: + containers: + - name: kafka + image: solsson/kafka:0.10.0.1 + command: + - ./bin/kafka-console-consumer.sh + - --zookeeper + - zookeeper:2181 + - --topic + - test1 + - --from-beginning |