123DevOps··8 min read

What is Strimzi? Apache Kafka on Kubernetes with operators and KRaft

Learn what Strimzi is, how its operators manage Kafka clusters in KRaft mode with Kafka, KafkaNodePool, KafkaTopic, KafkaUser, KafkaConnect, and MirrorMaker 2, what changed with the v1 API, and when it is worth it.

Kubernetes

Running Apache Kafka is already specialist work: certificates, rolling restarts without losing in-sync replicas, partition rebalancing, version upgrades. Running Kafka on Kubernetes with hand-written StatefulSets adds everything that can go wrong with volumes and pods. Strimzi turns that operational knowledge into operators: you describe the cluster in YAML, and they take care of the rest.

What Strimzi is

Strimzi is a set of Kubernetes operators for running Apache Kafka and its components — brokers, controllers, Kafka Connect, MirrorMaker 2, and the Kafka Bridge (HTTP). It joined the CNCF as a Sandbox project in 2019 and moved to Incubating in February 2024; as of November 2026 it remains at that level (check the project page). It is licensed under Apache 2.0.

Two recent changes define how you use Strimzi today:

  • KRaft only. Kafka 4.0 removed ZooKeeper, and Strimzi 0.46 dropped support for ZooKeeper-based clusters — and for migrating them to KRaft. If you still have a ZooKeeper-based cluster, you must migrate to KRaft before moving past 0.45.
  • The v1 API. Starting with Strimzi 1.0.0, the only supported CRD version is kafka.strimzi.io/v1. Resources in v1beta2 must be converted before upgrading, following the procedure in the documentation.

On the releases page, the most recent version we saw was 1.3.1, supporting up to Kafka 4.3.2 and requiring Kubernetes 1.32 or newer. MirrorMaker 1 has also been removed; for cross-cluster replication, use MirrorMaker 2.

What problem it solves

  • Declarative Kafka: the cluster, topics, users, and connectors become Kubernetes resources, versionable and auditable.
  • Safe operations: the operator performs rolling restarts that respect in-sync replicas, renews certificates, and applies configuration changes in the right order.
  • Secure by default: automatically generated CAs and TLS certificates, mTLS, SCRAM, or OAuth authentication, and per-user ACLs.
  • A complete ecosystem: Connect with plugin image builds, MirrorMaker 2, the HTTP Bridge, and Cruise Control integration for partition rebalancing.

How it works

The Cluster Operator watches the Kafka, KafkaNodePool, KafkaConnect, and other resources and creates pods, Services, Secrets, and PVCs. Optionally, it deploys the Entity Operator, which contains the Topic Operator (syncs KafkaTopic with the actual topics) and the User Operator (creates credentials and ACLs from KafkaUser).

Resource What it is for
Kafka The cluster: version, listeners, authorization, broker configuration
KafkaNodePool Groups of nodes with a role (controller, broker, or both), replicas, and storage
KafkaTopic A topic with partitions, replicas, and configuration
KafkaUser A user with authentication (mTLS, SCRAM) and ACLs
KafkaConnect A Kafka Connect cluster, including plugin builds
KafkaConnector One connector inside Connect, managed as a resource
KafkaMirrorMaker2 Topic and offset replication between clusters
KafkaBridge An HTTP API to produce and consume
KafkaRebalance Partition rebalancing via Cruise Control

Node pools are the centerpiece of the KRaft model: instead of one configuration for every broker, you define separate pools for controllers and brokers, with different sizes and disks. For storage, it’s worth reviewing Kubernetes storage: Kafka depends on fast persistent disks, and the StorageClass you pick directly affects latency.

Upgrades and maintenance

Upgrades happen in two stages: first the Cluster Operator (and the CRDs), then the Kafka version, by changing spec.kafka.version on the Kafka resource; metadataVersion should only be raised once every node is stable on the new version. For node maintenance, the project offers the Strimzi Drain Cleaner, which intercepts kubectl drain evictions and lets the operator move Kafka pods without taking down in-sync replicas. Always read the release notes before upgrading: each Strimzi release supports a limited set of Kafka versions.

Hands-on example

Install the operator in a dedicated namespace (commands as in the official quickstart; pin the version in production):

kubectl create namespace kafka
kubectl create -f 'https://strimzi.io/install/latest?namespace=kafka' -n kafka
kubectl get pods -n kafka -w

A KRaft cluster with three controllers and three brokers, an internal listener with TLS and mTLS, and ACL-based authorization:

apiVersion: kafka.strimzi.io/v1
kind: KafkaNodePool
metadata:
  name: controller
  namespace: kafka
  labels:
    strimzi.io/cluster: my-cluster
spec:
  replicas: 3
  roles:
    - controller
  storage:
    type: jbod
    volumes:
      - id: 0
        type: persistent-claim
        size: 20Gi
        kraftMetadata: shared
---
apiVersion: kafka.strimzi.io/v1
kind: KafkaNodePool
metadata:
  name: broker
  namespace: kafka
  labels:
    strimzi.io/cluster: my-cluster
spec:
  replicas: 3
  roles:
    - broker
  storage:
    type: jbod
    volumes:
      - id: 0
        type: persistent-claim
        size: 100Gi
        kraftMetadata: shared
---
apiVersion: kafka.strimzi.io/v1
kind: Kafka
metadata:
  name: my-cluster
  namespace: kafka
spec:
  kafka:
    version: 4.3.2
    metadataVersion: 4.3-IV0
    listeners:
      - name: tls
        port: 9093
        type: internal
        tls: true
        authentication:
          type: tls
    authorization:
      type: simple
    config:
      offsets.topic.replication.factor: 3
      transaction.state.log.replication.factor: 3
      transaction.state.log.min.isr: 2
      default.replication.factor: 3
      min.insync.replicas: 2
  entityOperator:
    topicOperator: {}
    userOperator: {}

A topic and a user for the orders application. The User Operator creates an orders-app Secret with the client certificate:

apiVersion: kafka.strimzi.io/v1
kind: KafkaTopic
metadata:
  name: orders
  namespace: kafka
  labels:
    strimzi.io/cluster: my-cluster
spec:
  partitions: 6
  replicas: 3
  config:
    retention.ms: 604800000
    min.insync.replicas: 2
---
apiVersion: kafka.strimzi.io/v1
kind: KafkaUser
metadata:
  name: orders-app
  namespace: kafka
  labels:
    strimzi.io/cluster: my-cluster
spec:
  authentication:
    type: tls
  authorization:
    type: simple
    acls:
      - resource:
          type: topic
          name: orders
          patternType: literal
        operations:
          - Describe
          - Read
          - Write
        host: "*"
      - resource:
          type: group
          name: orders-app
          patternType: literal
        operations:
          - Read
        host: "*"

Kafka Connect authenticating with mTLS (the connect KafkaUser, with ACLs for Connect’s internal topics, follows the same format as the previous one) and a MirrorMaker 2 replicating everything from a source cluster into this one:

apiVersion: kafka.strimzi.io/v1
kind: KafkaConnect
metadata:
  name: connect
  namespace: kafka
  annotations:
    strimzi.io/use-connector-resources: "true"   # connectors via KafkaConnector
spec:
  version: 4.3.2
  replicas: 2
  bootstrapServers: my-cluster-kafka-bootstrap:9093
  groupId: connect-cluster
  configStorageTopic: connect-configs
  offsetStorageTopic: connect-offsets
  statusStorageTopic: connect-status
  tls:
    trustedCertificates:
      - secretName: my-cluster-cluster-ca-cert
        pattern: "*.crt"
  authentication:
    type: tls
    certificateAndKey:
      secretName: connect
      certificate: user.crt
      key: user.key
  config:
    config.storage.replication.factor: -1
    offset.storage.replication.factor: -1
    status.storage.replication.factor: -1
---
apiVersion: kafka.strimzi.io/v1
kind: KafkaMirrorMaker2
metadata:
  name: dr
  namespace: kafka
spec:
  version: 4.3.2
  replicas: 1
  target:
    alias: my-cluster
    bootstrapServers: my-cluster-kafka-bootstrap:9093
    groupId: mm2-dr
    configStorageTopic: mm2-dr-configs
    offsetStorageTopic: mm2-dr-offsets
    statusStorageTopic: mm2-dr-status
    # in production, add tls and authentication as in KafkaConnect
  mirrors:
    - source:
        alias: source
        bootstrapServers: source-kafka-bootstrap.kafka-source.svc:9092
      topicsPattern: ".*"
      groupsPattern: ".*"
      sourceConnector:
        tasksMax: 2
        config:
          replication.factor: -1
      checkpointConnector:
        tasksMax: 1
        config:
          checkpoints.topic.replication.factor: -1

Applying and following along:

kubectl apply -n kafka -f cluster.yaml -f topic-user.yaml
kubectl wait kafka/my-cluster --for=condition=Ready --timeout=300s -n kafka

kubectl get kafka,kafkanodepool,kafkatopic,kafkauser -n kafka
kubectl get secret orders-app -n kafka -o jsonpath='{.data.user\.crt}' | base64 -d | head -3

The YAML follows the official examples for version 1.3.1; since the Strimzi CRDs were not installed on the test cluster, it was checked against the documentation rather than validated by the API server.

When to use it (and when not to)

It makes sense when:

  • You already run Kubernetes maturely and want Kafka under the same GitOps, RBAC, and observability model.
  • You need Kafka on-premises, across several clouds, or where a managed service isn’t an option.
  • You want to standardize topics and users as code, reviewed in Pull Requests, instead of scripts with kafka-topics.sh.
  • You will use the ecosystem: Connect, MirrorMaker 2 for DR, and Cruise Control for rebalancing.

Think twice when:

  • The team has no Kafka experience: the operator automates operations, but it doesn’t replace knowing how to size partitions, retention, and replicas.
  • The Kubernetes cluster lacks reliable persistent storage or dedicated nodes for brokers.
  • A managed service meets your needs and nobody wants to own Kafka and operator upgrades.
  • You only need a simple queue: for queues and events without replay, services like those in SNS, SQS, and EventBridge are less work.

If your consumers run on Kubernetes, KEDA can scale them based on consumer group lag.

Alternatives

Option Model When to consider it
Strimzi Open source operators, CNCF Incubating Kafka on your own Kubernetes, with full control
Confluent for Kubernetes Confluent’s commercial operator You already use the Confluent platform and want vendor support
Managed Kafka (Amazon MSK, Confluent Cloud, and others) Provider service Less operations, accepting the provider’s limits
Kafka on VMs (Ansible, scripts) Traditional installation Teams with mature Kafka operations outside Kubernetes

Summary

  • Strimzi is a set of operators for Kafka on Kubernetes, CNCF Incubating as of November 2026
  • Since 0.46, KRaft only: migrate off ZooKeeper before moving past 0.45
  • Since 1.0.0, use kafka.strimzi.io/v1; convert v1beta2 resources before upgrading
  • KafkaNodePool separates controllers and brokers, each with its own replicas and storage
  • KafkaTopic and KafkaUser turn topics, credentials, and ACLs into reviewable code
  • Connect, MirrorMaker 2, the Bridge, and Cruise Control round out the ecosystem
  • The operator automates operations, but it doesn’t replace Kafka know-how

Strimzi doesn’t make Kafka simple — it makes the hard part repeatable, reviewable, and in the same place as the rest of your platform.

Get updates on new posts and stay in the loop!