Kafka
Deploy and connect to Kafka clusters in Sealos DevBox
Apache Kafka is a distributed event streaming platform that allows you to build real-time data pipelines and streaming applications. In Sealos DevBox, you can easily set up and connect to Kafka clusters for your development projects.
Deploy Kafka in Sealos
Sealos makes it easy to deploy a Kafka cluster with just a few clicks. Follow these steps:
From the Sealos desktop, click on the "Database" icon to open the Database app.
Click on the "Create New Database" button. In the deployment form:
- Select "Kafka" as the database type.
- Choose the desired Kafka version (e.g., kafka-3.3.2).
- Enter a name for your Kafka cluster (use lowercase letters and numbers only).
- Adjust the CPU and Memory sliders to set the resources for your Kafka brokers.
- Set the number of brokers (1 for single-node development and testing, 3 or more for production).
- Specify the storage size for each broker (e.g., 3 Gi).
Review the projected cost on the left sidebar. Click the "Deploy" button in the top right corner to create your Kafka cluster.
Once deployed, Sealos will provide you with the necessary connection details.
Connect to Kafka in DevBox
Here are examples of how to connect to your Kafka cluster using different programming languages and frameworks within your DevBox environment:
Edit on GitHub
Last updated on