Add Apache Kafka on OpenShift documentation#310
Add Apache Kafka on OpenShift documentation#310kpwrennbu wants to merge 1 commit intonerc-project:mainfrom
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| clusters on OpenShift. On NERC OpenShift, you will install Strimzi into your own | ||
| namespace. | ||
|
|
||
| ### Install the Strimzi Operator |
| definition. This deploys a single-broker Kafka cluster with 3 ZooKeeper replicas | ||
| and ephemeral (non-persistent) storage suitable for development and testing: | ||
|
|
||
| ```yaml |
There was a problem hiding this comment.
kafka version: 3.8.0 is outdated. You could use this example file: https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/kafka/kafka-single-node.yaml. Please add namespace: your-project in the according KafkaNodePool and Kafka resources and update the storage.volumes.size to 1Gi for demo purpose.
| A healthy cluster will show output similar to: | ||
|
|
||
| ``` | ||
| NAME READY STATUS RESTARTS AGE |
There was a problem hiding this comment.
No zookeeper pods in Kafka 4.0+, it will look like this:
my-cluster-dual-role-0 1/1 Running 0 5m9s
my-cluster-entity-operator-ccfdfd74f-nlpqx 2/2 Running 0 4m17s
|
|
||
| ```sh | ||
| oc run kafka-producer -ti \ | ||
| --image=quay.io/strimzi/kafka:0.45.0-kafka-3.8.0 \ |
There was a problem hiding this comment.
please test with the newer version of the image: --image=quay.io/strimzi/kafka:0.50.1-kafka-4.1.1 \
|
|
||
| ```sh | ||
| oc run kafka-consumer -ti \ | ||
| --image=quay.io/strimzi/kafka:0.45.0-kafka-3.8.0 \ |
|
|
||
| ```sh | ||
| # Delete the Kafka topic | ||
| oc delete kafkatopic my-topic -n <your-project> |
There was a problem hiding this comment.
KafkaNodePool need to be deleted as well: 'oc delete KafkaNodePool dual-role -n `
Summary
kafka-on-openshift.mdtodocs/other-tools/kafka/kafka-on-openshift.mdmkdocs.yamlunder the Other Tools On NERC nav section, after Apache SparkTest plan