Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions microprofile-reactive-messaging-kafka/README-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,7 @@ bin/kafka-topics.sh --create --topic testing --bootstrap-server localhost:9092
// OpenShift
include::../shared-doc/build-and-run-the-quickstart-with-openshift.adoc[leveloffset=+1]
----
$ oc delete -f ./charts/kafka-topic.yaml --wait --timeout=10m0s
$ oc delete -f ./charts/kafka-on-openshift.yaml --wait --timeout=10m0s
$ oc delete -f ./charts/amq-operator-on-openshift.yaml --wait --timeout=10m0s
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,3 @@ spec:
type: ephemeral
entityOperator:
topicOperator: {}

---
# create a topic in Kafka Stream instance
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
name: testing
labels:
strimzi.io/cluster: my-cluster
spec:
partitions: 3
replicas: 3
10 changes: 10 additions & 0 deletions microprofile-reactive-messaging-kafka/charts/kafka-topic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# create a topic in Kafka Stream instance
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
name: testing
labels:
strimzi.io/cluster: my-cluster
spec:
partitions: 3
replicas: 3
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ NAME DISPLAY VERSION REPLACES
amqstreams.v3.0.0-13 Streams for Apache Kafka 3.0.0-13 amq-streams.v3.0.0-9 Succeeded
----

Then you can set up a Kafka cluster called `my-cluster` with topic `testing` in your project:
Then you can set up a Kafka cluster called `my-cluster` in your project:
[options="nowrap",subs="+attributes"]
----
$ oc apply -f ./charts/kafka-on-openshift.yaml --wait --timeout=10m0s
----

Once the Kafka cluster is ready, create the topic `testing`:
[options="nowrap",subs="+attributes"]
----
$ oc apply -f ./charts/kafka-topic.yaml --wait --timeout=10m0s
----

Although the above commands will return pretty immediately, your AMQ Streams instance will not be available until its entity operator is up and running. The name of the pod will be of the format `my-cluster-entity-operator-xxxxxxxxx-yyyyy`.

To be on the safe side, wait until this pod is ready, as shown in this example:
Expand Down
Loading