---
title: "monedula-gitops"
description: "Declarative GitOps for Apache Kafka topics, access, quotas, schemas, SCRAM users and Confluent RBAC, from a CLI or a Kubernetes operator."
url: https://monedula.dev/flock/docs/gitops/
---

monedula-gitops manages Apache Kafka resources as declarative, Kubernetes-style YAML that you keep in Git. It validates your manifests, compares them with the live cluster and applies only the operations needed to converge; [Safety gates](/flock/docs/gitops/concepts/safety-gates/) lists the changes that wait for approval.

## What it manages

Every resource uses `apiVersion: gitops.monedula.dev/v1alpha1`.

- [KafkaCluster](/flock/docs/gitops/reference/resources/kafka-cluster/) describes how to connect to a Kafka cluster and, optionally, to its Schema Registry, Confluent MDS and Kafka REST API.
- [KafkaTopic](/flock/docs/gitops/reference/resources/kafka-topic/) declares one topic: its partitions and configuration, the principals that produce to and consume from it, and its Schema Registry subjects.
- [KafkaAccessPolicy](/flock/docs/gitops/reference/resources/kafka-access-policy/) holds ACL rules that do not belong to a single topic, such as prefixed patterns, `Deny` rules and shared consumer groups.
- [KafkaQuota](/flock/docs/gitops/reference/resources/kafka-quota/) sets client quotas per user, client id or IP address.
- [KafkaRoleBinding](/flock/docs/gitops/reference/resources/kafka-role-binding/) declares a Confluent RBAC role binding, managed through the Confluent Platform Metadata Service (MDS).
- [KafkaUser](/flock/docs/gitops/reference/resources/kafka-user/) declares a Kafka SCRAM principal: its username, mechanism and password.
- [KafkaMirrorTopic](/flock/docs/gitops/reference/resources/kafka-mirror-topic/) declares a Confluent mirror topic on an existing cluster link.

## One model, two runtimes

You run the CLI from a terminal or a CI/CD pipeline; the Kubernetes operator reconciles custom resources inside your cluster. Both load the same kinds through one diff and execution engine, and [One model, two runtimes](/flock/docs/gitops/concepts/one-model-two-runtimes/) lists where they differ, mainly credentials and approvals.

## Where to start

- New to monedula-gitops: follow [Get started with the CLI](/flock/docs/gitops/tutorials/getting-started-cli/) or [Get started with the operator](/flock/docs/gitops/tutorials/getting-started-operator/).
- Already running a cluster: [Import an existing Kafka cluster](/flock/docs/gitops/how-to/import-an-existing-cluster/) generates manifests from live state.
- Giving applications access to a topic: [Grant producers and consumers access](/flock/docs/gitops/how-to/grant-topic-access/).
- Catching changes made outside Git: [Detect and fix drift](/flock/docs/gitops/how-to/detect-and-fix-drift/).
- Looking up a command, flag or exit code: the [CLI overview](/flock/docs/gitops/reference/cli/).

## Conventions in the how-to guides

Unless a guide names one runtime, it works with the CLI and a cluster config file, `cluster.yaml` in the commands, or with the operator and a `KafkaCluster` resource; [Connect to a secured Kafka cluster](/flock/docs/gitops/how-to/connect-to-a-secured-cluster/) shows how to write either. The examples name the cluster `shared`: set `clusterRef.name` to the `metadata.name` of your own `KafkaCluster`.

## Supported platforms

monedula-gitops works with Apache Kafka and Confluent Platform, and manages topics, ACLs and Schema Registry subjects on Confluent Cloud; [Supported platforms and versions](/flock/docs/gitops/concepts/supported-platforms/) lists the details and the CI-tested versions.

## Version and license

These docs describe monedula-gitops 1.3.0. The tool is open source under the AGPL-3.0 license, and its source and runnable scenarios are on [GitHub](https://github.com/monedula-dev/monedula-gitops). Using it on your own clusters, as a CLI or as an operator in your own infrastructure, does not oblige you to share your code or manifests: AGPL obligations apply when you distribute it, modified or not, or let others use a modified version over a network. For commercial licensing, [contact us](/contact/).