A guide explaining how to set up and deploy Vultr Managed Apache Kafka® instances for your applications
Vultr Managed Apache Kafka® is a highly available, scalable, and fully managed data streaming platform that simplifies real-time data processing. Apache Kafka® is designed to handle high-throughput data streams, making it ideal for applications involving AI, machine learning, IoT, and microservices. With native cloud integration, Vultr Managed Apache Kafka® seamlessly connects to various data sources and consumers, enabling businesses to build powerful, modern data architectures.
Follow this guide to provision Vultr Managed Apache Kafka® using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Managed Database Plans endpoint to view all available plans.
$ curl "https://api.vultr.com/v2/databases/plans" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Database endpoint to create a new database.
$ curl "https://api.vultr.com/v2/databases" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"database_engine" : "kafka",
"database_engine_version" : "3.7",
"plan" : "vultr-dbaas-startup-3x-occ-so-2-30-2",
"region" : "atl",
"label" : "remote-apache-kafka"
}'
Visit the Create Database endpoint to view additional attributes to add to your request.
Send a GET
request to the List Managed Databases endpoint to list all databases.
$ curl "https://api.vultr.com/v2/databases" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json"
List the available database plans.
$ vultr-cli database plan list
Create a new Vultr Managed Apache Kafka® database.
$ vultr-cli database create --database-engine="kafka" --database-engine-version="3.7" --region="atl" --plan="vultr-dbaas-startup-3x-occ-so-2-30-2" --label="remote-apache-kafka"
List all databases.
$ vultr-cli database list
Run vultr-cli database create --help
to view all options.
Ensure the Vultr Terraform provider is configured in your Terraform project.
Define the Managed Apache Kafka® database in your Terraform configuration file.
terraform {
required_providers {
vultr = {
source = "vultr/vultr"
version = "~> 2.26"
}
}
}
provider "vultr" {}
resource "vultr_database" "kafka" {
database_engine = "kafka"
database_engine_version = "3.7"
region = "atl" # e.g., ewr, ams, sgp, atl
plan = "vultr-dbaas-startup-3x-occ-so-2-30-2"
label = "kafka-cluster-1"
# Optional
# vpc_id = "<vpc-id>"
# trusted_ips = ["192.0.2.1", "192.0.2.2"]
}
output "kafka_host" { value = vultr_database.kafka.host }
output "kafka_port" { value = vultr_database.kafka.port }
Apply the configuration and observe the following output:
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
No comments yet.