diff options
author | Staffan Olsson <staffan@repos.se> | 2016-09-05 14:14:56 +0200 |
---|---|---|
committer | Staffan Olsson <staffan@repos.se> | 2016-09-05 14:20:16 +0200 |
commit | 2abf869d367853e209e9e91d65f517e9937a9c99 (patch) | |
tree | 7d9b25813dada6477ac809cc829a9acfcffd77c0 /test | |
parent | 31d6c90bc924958eb7b9faaf4019cc3a48645413 (diff) | |
download | kubernetes-kafka-2abf869d367853e209e9e91d65f517e9937a9c99.tar.gz kubernetes-kafka-2abf869d367853e209e9e91d65f517e9937a9c99.tar.bz2 kubernetes-kafka-2abf869d367853e209e9e91d65f517e9937a9c99.zip |
Using a namespace for easier cleanup and consistent DNS namesnamespace
Diffstat (limited to 'test')
-rw-r--r-- | test/99testclient.yml | 1 | ||||
-rw-r--r-- | test/test.sh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/99testclient.yml b/test/99testclient.yml index 97cbf3d..88ad6bb 100644 --- a/test/99testclient.yml +++ b/test/99testclient.yml @@ -4,6 +4,7 @@ apiVersion: v1 kind: Pod metadata: name: testclient + namespace: kafka spec: containers: - name: kafka diff --git a/test/test.sh b/test/test.sh index f21fe87..f81070b 100644 --- a/test/test.sh +++ b/test/test.sh @@ -7,7 +7,7 @@ kubectl exec -ti testclient -- ./bin/kafka-console-consumer.sh --zookeeper zooke # Go ahead and produce topics, haven't found a way to do this directly through kubectl exec kubectl exec -ti testclient -- /bin/bash -echo "Test $(date)" | ./bin/kafka-console-producer.sh --broker-list kafka-0.broker:9092 --topic test1 +echo "Test $(date)" | ./bin/kafka-console-producer.sh --broker-list kafka-0.broker.kafka.svc.cluster.local:9092 --topic test1 echo "Test $(date)" | ./bin/kafka-console-producer.sh --broker-list kafka-1.broker:9092,kafka-2.broker:9092 --topic test1 # "WARN Removing server from bootstrap.servers as DNS resolution failed: kafka-X.broker:9092" echo "Test $(date)" | ./bin/kafka-console-producer.sh --broker-list kafka-0.broker:9092,kafka-1.broker:9092,kafka-2.broker:9092,kafka-X.broker:9092 --topic test1 |