---
title: Charmhub | Deploy Apache Kafka using Charmhub - The Open Operator Collection
description: Deploy the latest version of Apache Kafka on any cloud. Charmed Apache
  Kafka Operator
url: https://charmhub.io/kafka
---

# Apache Kafka

[Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

* [Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")
* [Databases](https://charmhub.io/?filter=databases)

Platform:

24.04

22.04

4/stable 248

```
juju deploy kafka --channel 4/stable
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://ubuntu.com/data/kafka)
* [Contact](mailto:Canonical Data Platform <data-platform@lists.launchpad.net>)

---

#### Contacts

##### Maintainers

+ [Canonical Data Platform](mailto:data-platform@lists.launchpad.net)

* [Submit a bug](https://github.com/canonical/kafka-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# Charmed Apache Kafka

This is an open-source software operator (charm) that simplifies the deployment and management of Apache Kafka on traditional machine environments in a platform-agnostic way. Whether you’re on public cloud (AWS, Azure, GCP) or private infrastructure (OpenStack, VMWare), this charm provides a consistent and reliable way to deploy and run an Apache Kafka cluster.

> This is a IAAS/VM operator. To deploy on Kubernetes, see [Charmed Apache Kafka K8s operator](https://charmhub.io/kafka-k8s).

[Apache Kafka](https://kafka.apache.org/) is a free, open-source software project by the Apache Software Foundation.

The charm helps ops teams and administrators automate Apache Kafka operations from [Day 0 to Day 2](https://codilime.com/blog/day-0-day-1-day-2-the-software-lifecycle-in-the-cloud-age/) with additional capabilities, such as: replication, TLS encryption, password rotation, easy-to-use application integration, and monitoring.

## [Getting started](https://charmhub.io/kafka#p-39339-getting-started)

Charmed Apache Kafka can run both with `roles=broker` and/or `roles=controller`. With this configuration option, the charm can be deployed either as a single application running both Apache Kafka brokers and KRaft controllers, or as multiple applications with a separate controller cluster and broker cluster.

For testing purposes, deploy a cluster of three nodes combining both roles:

```
juju deploy kafka -n 3 --config roles=broker,controller --channel 4/edge
```

To deploy a cluster of three Kafka brokers and a separate cluster of three KRaft controllers working together:

```
juju deploy kafka -n 3 --channel 4/edge --roles=broker
juju deploy kafka -n 3 --channel 4/edge --roles=controller kraft
juju integrate kafka:peer-cluster-orchestrator kraft:peer-cluster
```

For more information, see our [tutorial](https://documentation.ubuntu.com/charmed-kafka/4/tutorial/) and how-to guides:

* [How-to deploy guide](https://documentation.ubuntu.com/charmed-kafka/4/how-to/deploy/)
* [How-to manage units](https://documentation.ubuntu.com/charmed-kafka/4/how-to/manage-units/)
* [Encryption](https://documentation.ubuntu.com/charmed-kafka/4/how-to/tls-encryption/)
* [Monitoring](https://documentation.ubuntu.com/charmed-kafka/4/how-to/monitoring/)
* [Backups](https://documentation.ubuntu.com/charmed-kafka/4/explanation/backups//)

## [Full documentation](https://charmhub.io/kafka#p-39339-full-documentation)

For additional guidance, see our full Charmed Apache Kafka documentation at <https://documentation.ubuntu.com/charmed-kafka/4/>.

## [Project and community](https://charmhub.io/kafka#p-39339-project-and-community)

Charmed Apache Kafka is a distribution of Apache Kafka. It’s an open-source project that welcomes community contributions, suggestions, fixes and constructive feedback.

* [Read our Code of Conduct](https://ubuntu.com/community/code-of-conduct)
* [Join the Discourse forum](https://discourse.charmhub.io/tag/kafka)
* [Contribute](https://github.com/canonical/kafka-operator/blob/main/CONTRIBUTING.md) and report [issues](https://github.com/canonical/kafka-operator/issues/new)
* Explore [Canonical Data Fabric solutions](https://canonical.com/data)
* [Contact us](https://charmhub.io/kafka/docs/r-contacts) for all further questions

Apache®, Apache Kafka, Kafka®, and the Apache Kafka logo are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.

## [License](https://charmhub.io/kafka#p-39339-license)

The Charmed Apache Kafka Operator is free software, distributed under the Apache Software License, version 2.0. See [LICENSE](https://github.com/canonical/kafka-operator/blob/main/LICENSE) for more information.

---

[Help improve this document in the forum](https://discourse.charmhub.io/t/charmed-apache-kafka-v-4-x/18914) ([guidelines](https://discourse.charmhub.io/t/how-to-write-docs-our-documentation-guidelines-for-contributors/1245)). Last updated 1 year, 2 days ago.
