Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 2.88 KB

File metadata and controls

70 lines (53 loc) · 2.88 KB

Apache Kafka Cluster

Login as normal user:

oc login -u user

The Kafka Cluster is described in the event-bus-kafka.yml file.

You can deploy or update the Kafka cluster with the following command:

oc apply -f event-bus-kafka.yml

This cluster is available with the following services:

$ oc get svc
NAME                                 TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                      AGE
event-bus-kafka-0                    ClusterIP   172.30.196.30    <none>        9094/TCP                     159m
event-bus-kafka-1                    ClusterIP   172.30.195.26    <none>        9094/TCP                     159m
event-bus-kafka-2                    ClusterIP   172.30.27.143    <none>        9094/TCP                     159m
event-bus-kafka-bootstrap            ClusterIP   172.30.110.127   <none>        9091/TCP,9092/TCP,9093/TCP   159m
event-bus-kafka-brokers              ClusterIP   None             <none>        9091/TCP,9092/TCP,9093/TCP   159m
event-bus-kafka-external-bootstrap   ClusterIP   172.30.241.208   <none>        9094/TCP                     159m
event-bus-zookeeper-client           ClusterIP   172.30.172.217   <none>        2181/TCP                     161m
event-bus-zookeeper-nodes            ClusterIP   None             <none>        2181/TCP,2888/TCP,3888/TCP   161m

The event-bus-kafka-bootstrap service is used to connect the producers and consumers with this cluster.

  • Port 9092: Unsecured port
  • Port 9093: Secured port
  • Port 9404: Metrics port

We could check the status of this Apache Kafka cluster with:

❯ oc get kafka
NAME        DESIRED KAFKA REPLICAS   DESIRED ZK REPLICAS   READY   WARNINGS
event-bus   3                        3                             

To describe the Kafka:

oc get kafka event-bus -o yaml

The following pods will be deployed:

❯ oc get pod
NAME                                                READY   STATUS    RESTARTS   AGE
event-bus-entity-operator-5b67db696c-msc9w          3/3     Running   0          54s
event-bus-kafka-0                                   1/1     Running   0          2m36s
event-bus-kafka-1                                   1/1     Running   0          2m36s
event-bus-kafka-2                                   1/1     Running   0          2m36s
event-bus-kafka-exporter-849bfcc8f5-cr89b           1/1     Running   0          13s
event-bus-zookeeper-0                               1/1     Running   0          4m34s
event-bus-zookeeper-1                               1/1     Running   0          4m34s
event-bus-zookeeper-2                               1/1     Running   0          4m34s
strimzi-cluster-operator-v0.22.1-65ccf4df44-phf2j   1/1     Running   0          6m27s

References: