Self-hosted Kafka
You can run Kafka in the same Kubernetes cluster that hosts the Seldon Enterprise Platform. We recommend using the Strimzi operator for Kafka installation and maintenance.
Note: These instructions help you quickly set up a Kafka cluster. For production grade installation consult Strimzi documentation or use one of managed solutions .
Integrating self-hosted Kafka with Seldon Core 2 includes these steps:
Installing Kafka in a Kubernetes cluster
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 thekafka
namespace.Next, you need to create a Kafka cluster by saving the following YAML configuration to a file named
kafka.yaml
and applying it withkubectl apply -f kafka.yaml
:This will set up a Kafka cluster with version 3.7.0. Ensure that you have reviewed the supported versions 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.
Configuring Seldon Core 2
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 namespaceseldon-system
.
Last updated