Skip to content

Commit 49865bc

Browse files
committed
Adds a test that produces a message that you can see in the logs of 21consumer-test1
1 parent f45ced5 commit 49865bc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/31producer-test1.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: producer-test1
5+
namespace: kafka
6+
spec:
7+
template:
8+
metadata:
9+
name: producer-test1
10+
spec:
11+
containers:
12+
- name: kafka
13+
image: solsson/kafka:0.11.0.0-rc2@sha256:c1316e0131f4ec83bc645ca2141e4fda94e0d28f4fb5f836e15e37a5e054bdf1
14+
command:
15+
- /bin/sh
16+
- -c
17+
- >
18+
echo "test1 $(date)"
19+
|
20+
./bin/kafka-console-producer.sh
21+
--topic test1
22+
--broker-list kafka-0.broker.kafka.svc.cluster.local:9092,kafka-1.broker.kafka.svc.cluster.local:9092,kafka-2.broker.kafka.svc.cluster.local:9092
23+
; sleep 1
24+
restartPolicy: Never

0 commit comments

Comments
 (0)