How to Provision Vultr Managed Apache Kafka®
-
by Blog Admin
- 6
How to Provision Vultr Managed Apache Kafka®
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.
Vultr Customer Portal
- Navigate to Products and select Databases.
- Click Add Managed Database.
- Choose Apache Kafka® as the database engine.
- Select the Server Type, Plan, and Brokers.
- Choose a server location.
- Select a VPC Network.
- Enter a label.
- Review the monthly and hourly cost estimates, and click Deploy Now.
Vultr API
- Send a
GET
request to the List Managed Database Plans endpoint to view all available plans.console$ 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.console$ 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.console$ curl "https://api.vultr.com/v2/databases" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}" \ -H "Content-Type: application/json"
Vultr CLI
- List the available database plans.
console
$ vultr-cli database plan list
- Create a new Vultr Managed Apache Kafka® database.
console
$ 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.
console
$ vultr-cli database list
Run
vultr-cli database create --help
to view all options.
Terraform
- Ensure the Vultr Terraform provider is configured in your Terraform project.
- Define the Managed Apache Kafka® database in your Terraform configuration file.
terraform
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.
How to Provision Vultr Managed Apache Kafka® 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…
How to Provision Vultr Managed Apache Kafka® 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…