canonical / kafka-bundle

2 stars 2 forks source link
data-platform kafka

Charmed Kafka Bundle

Charmhub Release Tests

This repository contains the machine charm bundles for Kafka, available on Charmhub.

Usage

The steps outlined below are based on the assumption that you are deploying the charm locally with the latest LTS of Ubuntu. If you are using another version of Ubuntu or another operating system, the process may be different.

Install and Configure Dependencies

# (required) installing lxd and juju
sudo snap install lxd --classic
sudo snap install juju --classic

# (optional) installing terraform
sudo snap install terraform

Create a Juju controller on LXD

juju bootstrap localhost 

Deploying a Charmed Kafka cluster

If looking for a simple Charmed Kafka cluster environment to experiment and develop with, there are multiple supported methods one can use.

Deploying using Terraform
cd terraform/dev
terraform init
terraform apply
Deploying using Juju
juju add-model dev && juju switch dev
juju deploy kafka-bundle

Production Configuration

For certain workloads, you may wish to provision more storage. The supported production storage configuration is as follows:

You can see example production-ready configurations here: