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:
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 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:
kubectl get pods -n kafka
You should see multiple pods for Kafka, Zookeeper, and Strimzi operators running.
NAME READY STATUS RESTARTS AGE
seldon-kafka-0 1/1 Running 0 2d1h
seldon-kafka-1 1/1 Running 0 2d1h
seldon-kafka-2 1/1 Running 0 2d1h
seldon-zookeeper-0 1/1 Running 0 2d1h
strimzi-cluster-operator-58ff6ccf5-pqfjn 1/1 Running 0 2d1h
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: