- Kubernetes:A Complete DevOps Cookbook
- Murat Karslioglu
- 154字
- 2025-04-04 13:20:39
Installing the Apache Kafka Operator using KUDO
There are multiple Kafka operators listed in the See also section, such as Strimzi, Banzai Cloud, Confluent, krallistic, and others. Although I don't have any preference in this recipe, as an example, we will deploy the Apache Kafka Operator based on the KUDO Operator.
Let's perform the following steps:
- Kafka requires ZooKeeper. Let's create a ZooKeeper cluster:
$ kubectl kudo install zookeeper --instance=zk
- Create a Kafka cluster using the KUDO Kafka Operator:
$ kubectl kudo install kafka --instance=kafka
- List KUDO Operators by querying the Operators CRD APIs as follows. After deploying Kafka, which also has a ZooKeeper dependency, you should see both kafka and zookeeper operators:
$ kubectl get Operators
NAME AGE
kafka 9s
zookeeper 17s
- List KUDO instances:
$ kubectl get instances
NAME AGE
kafka 25s
zk 33s
Now you have learned how to deploy both ZooKeeper and Kafka using the KUDO Operator.