Skip to content

Commit e4c5179

Browse files
committed
Argh, curl will pretty print the json ...
and kafkacat will produce each line separately
1 parent b9e7b8a commit e4c5179

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

addon-events/events-kube-kafka.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
value: ops-kube-events-all-json-001
2929
command:
3030
- /bin/bash
31-
- -ec
31+
- -c
3232
# curl errors will go to kafka, kafkacat errors will got to log
3333
- >
3434
echo "Started at $(date -u +%FT%TZ) producing to $TOPIC"
@@ -46,3 +46,13 @@ spec:
4646
-z snappy
4747
-v
4848
-d broker,topic
49+
;
50+
echo "Last message on topic:"
51+
;
52+
kafkacat
53+
-b $BOOTSTRAP
54+
-t $TOPIC
55+
-C
56+
-o -1
57+
-c 1
58+
-z snappy

0 commit comments

Comments
 (0)