aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/99testclient.yml1
-rw-r--r--test/test.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/test/99testclient.yml b/test/99testclient.yml
index 9be05d8..6ed3cc8 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 276350f..ac3cc1c 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