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

# Apache Kafka - K8s

[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:

4/stable 111

```
juju deploy kafka-k8s --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-k8s-operator/issues)

---

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

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

# Charmed Apache Kafka K8s

This is an open-source software operator (charm) that simplifies the deployment and management of Apache Kafka on Kubernetes environments in a platform-agnostic way. Whether you’re on public cloud (AKS, EKS) or private infrastructure (Canonical Kubernetes, microK8s), this charm provides a consistent and reliable way to deploy and run an Apache Kafka cluster.

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

[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-k8s#p-39631-getting-started)

Charmed Apache Kafka K8s 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-k8s --trust -n 3 --channel 4/edge --config roles=broker,controller
```

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

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

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

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

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

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

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

Charmed Apache Kafka K8s 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-k8s-operator/blob/main/CONTRIBUTING.md) and report [issues](https://github.com/canonical/kafka-k8s-operator/issues/new)
* Explore [Canonical Data Fabric solutions](https://canonical.com/data)
* [Contact us](https://documentation.ubuntu.com/charmed-kafka-k8s/4/reference/contact/) 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-k8s#p-39631-license)

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

---

[Help improve this document in the forum](https://discourse.charmhub.io/t/charmed-apache-kafka-k8s-v-4-x/19022) ([guidelines](https://discourse.charmhub.io/t/how-to-write-docs-our-documentation-guidelines-for-contributors/1245)). Last updated 9 months ago.
