> For the complete documentation index, see [llms.txt](https://docs.lenses.io/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenses.io/latest/k2k/readme.md).

# K2K documentation

Replicate Kafka topics, schemas, and topic configurations between Kafka clusters.

{% hint style="info" %}
**K2K is generally available.** See [Releases and compatibility](https://github.com/lensesio-dev/k2k-documentation/tree/release/2.1.0/.gitbook/includes/install/releases-and-compatibility.md) for supported versions and upgrade guidance.
{% endhint %}

## Feedback

{% hint style="success" %}
Found an issue? Feed it back to us at [Github](https://github.com/orgs/lensesio/discussions), on [Slack](https://www.launchpass.com/lensesio), [Ask Marios](https://ask.lenses.io/) or [email](mailto:info@lenses.io).
{% endhint %}

{% hint style="warning" %}
To execute K2K, you must agree to the EULA and secure a free license.

Accept the EULA by setting `license.acceptEula` to `true` .
{% endhint %}

K2K (Kafka-to-Kafka) replicates data between Apache Kafka clusters and Kafka API-compatible implementations. It continuously copies records, schemas, and topic configurations from a source cluster to a target cluster.

K2K includes a **replicator** (`k2k`) and an optional **offset mapper** (`k2k-offset-mapping`). A single YAML pipeline file configures both applications. The replicator copies records between clusters. The offset mapper translates consumer group positions. This lets applications fail over without reprocessing from the beginning.

Deploy both applications when you enable offset mapping. Use **k2k-tool** for administration. It provides a CLI and web UI. See the [K2K glossary](https://docs.lenses.io/latest/k2k/glossary.md) for naming conventions.

## Getting started

Start with these pages:

1. [Use cases](https://docs.lenses.io/latest/k2k/use-cases.md) — Choose a scenario: disaster recovery, migration, or staging.
2. [Architecture](https://docs.lenses.io/latest/k2k/architecture.md) — Understand the applications and pipeline file.
3. [Minimal configuration](https://docs.lenses.io/latest/k2k/minimal-configuration.md) — Create your first pipeline.
4. [Deployment](https://docs.lenses.io/latest/k2k/deployment.md) — Deploy the replicator with Docker or Helm.
5. [Configuration reference](https://docs.lenses.io/latest/k2k/configuration-reference.md) — Configure features and performance settings.

Read [Performance](https://docs.lenses.io/latest/k2k/performance.md) to understand scaling and load behavior. Use [Runbooks](https://docs.lenses.io/latest/k2k/runbooks.md) for operational procedures.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lenses.io/latest/k2k/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
