The Kafka Topics are described in the following files:
topics/greetings-topic.yml
: Sample topic to be used by the sample applicationtopics/greetings-reversed-topic.yml
: Sample topic to be used by the sample streams applicationtopics/logs-topic.yml
: Topic to store logstopics/metrics-topic.yml
: Topic to store metrics
You can deploy or update the topics with the following command:
oc apply -f topics/
This command will show the status of the Kafka Topics:
❯ oc get kt
NAME CLUSTER PARTITIONS REPLICATION FACTOR READY
apps.samples.greetings event-bus 3 3 True
apps.samples.greetings.reversed event-bus 3 3 True
monitor.ocp.logs event-bus 10 3 True
monitor.ocp.metrics event-bus 10 3 True
To describe a KafkaTopic:
oc get kafkatopic monitor.ocp.metrics -o yaml
References: