Self-hosted Kafka
Last updated
Was this helpful?
Last updated
Was this helpful?
You can run Kafka in the same Kubernetes cluster that hosts the Seldon Enterprise Platform. We recommend using the for Kafka installation and maintenance.
Integrating self-hosted Kafka with Seldon Core 2 includes these steps:
Strimzi provides a Kubernetes Operator to deploy and manage Kafka clusters. First, we need to install the Strimzi Operator in your Kubernetes cluster.
Create a namespace where you want to install Kafka. For example the name space kafka
:
Install Strimzi.
Install Strimzi Operator.
This deploys the Strimzi Operator
in the kafka
namespace.
Next, you need to create a Kafka cluster by saving the following YAML configuration to a file named kafka.yaml
and applying it with kubectl apply -f kafka.yaml
:
This will set up a Kafka cluster with version 3.7.0. Ensure that you have reviewed the of Kafka and updated the version in the kafka.yaml
file as needed.
Check the status of the Kafka pods to ensure they are running properly:
You should see multiple pods for Kafka, Zookeeper, and Strimzi operators running.
To integrate Kafka with Seldon Core 2:
Update the configuration for Kafka to integrate with Seldon Core 2 Operator. For example, update the components-values.yaml
file. Use your preferred text editor to update and save the file with the following content:
Change to the directory that contains the components-values.yaml
file and then install Seldon Core 2 operator in the namespace seldon-system
.