You are on page 1of 2

- https://strimzi.

io/quickstarts/
- https://developers.redhat.com/blog/2018/10/29/how-to-run-kafka-on-openshift-the-
enterprise-kubernetes-with-amq-streams/

$ cat << EOF | oc create -f -


apiVersion: kafka.strimzi.io/v1alpha1
kind: Kafka
metadata:
name: my-cluster
spec:
kafka:
  replicas: 3
  listeners:
    external:
      type: route
  storage:
    type: ephemeral
zookeeper:
  replicas: 3
  storage:
    type: ephemeral
entityOperator:
  topicOperator: {}
EOF

## ——————————————————————————

$ cat << EOF | oc create -f -


apiVersion: kafka.strimzi.io/v1alpha1
kind: KafkaTopic
metadata:
name: my-topic
labels:
  strimzi.io/cluster: “my-cluster"
spec:
partitions: 3
replicas: 3
EOF
oc apply -f 'https://strimzi.io/install/latest?
namespace=maxis-logger' -n maxis-logger

oc apply -f https://strimzi.io/examples/
latest/kafka/kafka-persistent-
single.yaml -n maxis-logger

oc wait kafka/my-cluster --
for=condition=Ready --timeout=300s -n
maxis-logger

You might also like