- Open the OpenShift Console
- From project drop down list, select Create Project
- In the name field type
userX-kafka
, then Create
-
Select the
+
icon in the top bar (top right) -
Copy the following yaml file:
kind: Kafka apiVersion: kafka.strimzi.io/v1beta2 metadata: name: my-cluster spec: kafka: version: 3.4.0 replicas: 3 listeners: - name: plain port: 9092 type: internal tls: false config: offsets.topic.replication.factor: 3 transaction.state.log.replication.factor: 3 transaction.state.log.min.isr: 2 default.replication.factor: 3 min.insync.replicas: 2 storage: type: ephemeral zookeeper: replicas: 3 storage: type: ephemeral entityOperator: topicOperator: {} userOperator: {}
-
Wait for the
Ready
status. -
Check the cluster configuration in the Topology view.
- Select the
+
icon in the top bar (top right) - Copy the following yaml file:
kind: KafkaTopic apiVersion: kafka.strimzi.io/v1beta2 metadata: name: my-topic labels: strimzi.io/cluster: my-cluster spec: partitions: 12 replicas: 3
- From the left menu select Project