Recipes / kafka
Kafka on Kubernetes in KRaft mode under Strimzi
A recipe is packed cargo for one app: inventory classes, ready to load.
Apache Kafka 4.3.1 as a KRaft cluster of three nodes that are controllers and brokers, with mutual TLS and ACLs, designed in kadet-hub on Strimzi’s operator and rendered by the kadet-hub strimzi generator 1.1.0.
- Latest version:
1.0.1, published - Source: container image
quay.io/strimzi/kafka:1.3.0-kafka-4.3.1@sha256:1f189b1f0f32684302d8b018b1d21b411e2469a9c465fbdc18fa3599cb5bbdad, recipe designed in kadet-hub - Proof level:
deploys, deployed on kind and smoke tested by the kadet-hub/recipes CI renderspassed in the release run of with check 0.18.0, kind v0.33.0- Output capabilities: none
- Inventory backends:
omegaconf - Prerequisites, installed once per cluster before the recipe:
strimzi - Generators: strimzi 1.1.0
sha256:375ec870554a3d645f6b05abbeb8d16e6bdcbfbe1d7741a699308e45d1ef92d7 - Image security: grade F 734 findings, one per advisory and package, in the 1 image of version 1.0.1: CRITICAL 3, HIGH 129, MEDIUM 430, LOW 171, UNKNOWN 1. Scanned 2026-12-03 04:38 UTC. Full report
The grade rates the upstream images the recipe pins, not the recipe:quay.io/strimzi/kafka.
Replaces
This recipe replaces the kafka recipe of kadet-hub/examples, which stood
in for Bitnami’s kafka chart. The examples class named the Kafka events
and its node pool dual. A target that moves from it keeps both names, so
the Kafka keeps its claims data-0-events-dual-<n> and with them its
messages. Clients keep the Service events-kafka-bootstrap, the CA in
events-cluster-ca-cert and their certificates.
parameters:
generators:
strimzi:
kafkas:
kafka:
name: events
node_pools:
kafka-dual:
name: dualMoving changes these objects:
| kadet-hub/examples | This recipe |
|---|---|
Strimzi operator in the class, from its chart through a helm compile entry |
the recipe strimzi, installed in a target of its own. Delete the examples Deployment strimzi-cluster-operator first, because its selector changes. |
Namespace kafka, rendered by the recipe |
no Namespace. The target sets namespace: kafka. Keep the Namespace when the examples class goes, because deleting it deletes the claims. |
| Kafka image from the operator’s version map, by tag | spec.kafka.image, pinned by digest |
topic orders, user orders-app |
not rendered. The target sets its topics and users under their old names. |
The move is not tested.
What it deploys
recipes.kafka(init.yml)recipes.kafka.kafka(kafka.yml)
Required parameters
No parameter has to be set.
Include
A target includes the recipe and its options as classes and can override anything the recipe sets:
classes:
- recipes.kafka
parameters:
namespace: kafka
kapitan:
vars:
target: kafka
Fetching it
The quickstart goes through these steps on a kind cluster with the uptime-kuma recipe, from installing Kapitan to the running app.
A separate fetch inventory pins the recipe by version and digest. This is fetch/targets/recipes.yml for version 1.0.1:
parameters:
kapitan:
dependencies:
- type: oci
source: ghcr.io/kadet-hub/recipes/kafka:1.0.1@sha256:eb0d48d69ce0299efb9959a49ab895a0500bd11ded45604670aa2c611385764e
output_path: inventory/classes/recipes/kafka
The first command fetches the recipe into inventory/classes/recipes/kafka, the second the generators and compiles:
kapitan compile --inventory-path fetch --fetch --output-path .
kapitan compile --fetch
The first command exits with status 1 because the fetch target compiles nothing. Kapitan's --fetch checks neither the digest nor the attestation. This verifies the attestation of the recipe:
gh attestation verify \
oci://ghcr.io/kadet-hub/recipes/kafka@sha256:eb0d48d69ce0299efb9959a49ab895a0500bd11ded45604670aa2c611385764e \
--owner kadet-hub \
--cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main
The attested index must also list each digest under its recipe with the pinned version, and not as yanked. Verifying by hand shows how to read it.
Settings
| Setting | Inventory |
|---|---|
| Kafka version, 4.3.1 | applications.kafka.version and metadata_version, together with the tag in generators.strimzi.kafkas.kafka.spec.kafka.image |
| nodes, 3 | generators.strimzi.kafkas.kafka.node_pools.kafka-dual.replicas |
| volume size, 10Gi | generators.strimzi.kafkas.kafka.node_pools.kafka-dual.storage |
| resources | generators.strimzi.kafkas.kafka.node_pools.kafka-dual.resources |
| broker configuration | generators.strimzi.kafkas.kafka.config |
| topics, users | generators.strimzi.topics.<name>, generators.strimzi.users.<name> |
The strimzi generator renders one internal listener tls on port 9093
with mutual TLS, simple authorization, so a user can do only what its ACLs
allow, and the Entity Operator, which reconciles topics and users. It
derives the replication settings from the three brokers. A topic or user
the target sets belongs to the only Kafka.
Proof
check kafka --level deploys with tests/target.yml on kind for each
Kubernetes minor CI tests, with strimzi installed first. The image has no
Kubernetes objects to compare with, so the recipe is proven by deploying it
(RCP-44, RCP-58). tests/target.yml adds the examples class’s topic
orders as the KafkaTopic kafka-orders and its user as kafka-orders-app
(RCP-3). tests/smoke is the check of the kadet-hub/examples recipe: the
Kafka, the topic and the user are Ready, and a client with the user’s
certificate writes a message to the topic and reads it back over mutual TLS
through the Service kafka-kafka-bootstrap.
Versions
1.0.1, :sha256:eb0d48d69ce0299efb9959a49ab895a0500bd11ded45604670aa2c611385764e1.0.0, :sha256:925e6cf079add27ffcd2d8c322a2ce7106c79fdd35d02b0f5a33e64c30eadb2f
The recipe's files are in kadet-hub/recipes. All recipes