kadet-hub logokadet-hub

Recipes / rabbitmq

RabbitMQ on Kubernetes through the Cluster Operator and Kapitan

A recipe is packed cargo for one app: inventory classes, ready to load.

RabbitMQ 4.3.6 as a cluster of three nodes with persistent storage, designed in kadet-hub on the RabbitMQ Cluster Operator and rendered by the kadet-hub rabbitmq generator 1.1.0.

1.0.1proof level deploys

  • Latest version: 1.0.1, published
  • Source: container image docker.io/library/rabbitmq:4.3.6-management@sha256:54cb013d76cd1fd6c0a0708f34062ad61c452bb6f016b434c6c33f1a765d2b58, recipe designed in kadet-hub
  • Proof level: deploys, deployed on kind and smoke tested by the kadet-hub/recipes CI
  • renders passed 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: rabbitmq-cluster-operator, cert-manager
  • Generators: rabbitmq 1.1.0 sha256:06de7216aec4dd35f2722303e93e76075ca46565e2c3a5cd7753b19fc151b210
  • Image security: grade D 63 findings, one per advisory and package, in the 1 image of version 1.0.1: CRITICAL 0, HIGH 2, MEDIUM 56, LOW 5, UNKNOWN 0. Scanned 2026-12-03 04:38 UTC. Full report
    The grade rates the upstream images the recipe pins, not the recipe: docker.io/library/rabbitmq.

Replaces

This recipe replaces the rabbitmq recipe of kadet-hub/examples, which stood in for Bitnami’s rabbitmq chart. The examples class named the cluster production. A target that moves from it keeps the name, so the cluster keeps its claims persistence-production-server-<n> and with them its queues and messages. Clients keep the Service production and the credentials in production-default-user.

parameters:
  generators:
    rabbitmq:
      rabbitmqcluster:
        rabbitmq:
          name: production

Moving changes these objects:

kadet-hub/examples This recipe
RabbitMQ Cluster Operator from its release manifest, applied by hand the recipe rabbitmq-cluster-operator, installed in a target of its own
cert-manager in the class, from its chart the recipe cert-manager, installed in a target of its own
Namespace messaging, rendered by the recipe no Namespace. The target sets namespace: messaging. Do not delete the Namespace when the examples class goes, because deleting it deletes the claims.

The move is not tested.

What it deploys

  • recipes.rabbitmq (init.yml)
  • recipes.rabbitmq.rabbitmq (rabbitmq.yml)

Required parameters

No parameter has to be set. The operator creates the default user and its credentials in the Secret rabbitmq-default-user.

Include

A target includes the recipe and its options as classes and can override anything the recipe sets:

classes:
  - recipes.rabbitmq
parameters:
  namespace: messaging
  kapitan:
    vars:
      target: rabbitmq

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/rabbitmq:1.0.1@sha256:a10fd3bef0def7949b4b90e609dffc99ed16a6e188a743d7e9acab56525173aa
        output_path: inventory/classes/recipes/rabbitmq

The first command fetches the recipe into inventory/classes/recipes/rabbitmq, 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/rabbitmq@sha256:a10fd3bef0def7949b4b90e609dffc99ed16a6e188a743d7e9acab56525173aa \
  --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
RabbitMQ version, 4.3.6 generators.rabbitmq.rabbitmqcluster.rabbitmq.spec.image, tag and digest
nodes, 3 generators.rabbitmq.rabbitmqcluster.rabbitmq.spec.replicas
volume size, 10Gi, the operator’s default generators.rabbitmq.rabbitmqcluster.rabbitmq.spec.persistence.storage
resources, 250m CPU and 1Gi memory requested, 1Gi memory limit generators.rabbitmq.rabbitmqcluster.rabbitmq.spec.resources
configuration, plugins generators.rabbitmq.rabbitmqcluster.rabbitmq.spec.rabbitmq

The operator creates the Service rabbitmq with AMQP on 5672, the management API on 15672 and Prometheus metrics on 15692, and the headless Service rabbitmq-nodes. Queues, users and policies are custom resources of the Messaging Topology Operator, which the rabbitmq generator renders under generators.rabbitmq and which no recipe here installs.

Proof

check rabbitmq --level deploys with tests/target.yml on kind for each Kubernetes minor CI tests, with cert-manager and then rabbitmq-cluster-operator installed first. The image has no Kubernetes objects to compare with, so the recipe is proven by deploying it (RCP-44, RCP-58). tests/smoke is the check of the kadet-hub/examples recipe: all replicas are ready and rabbitmq-diagnostics check_running passes. Through the Service rabbitmq it then publishes a message to a quorum queue over the management API on 15672 and reads it back, gets the AMQP protocol header answered on 5672 and reads metrics on 15692.

Versions

  • 1.0.1, : sha256:a10fd3bef0def7949b4b90e609dffc99ed16a6e188a743d7e9acab56525173aa
  • 1.0.0, : sha256:dd5603fba93549bead99bd00680de261d77a47d536a5bf767b9804706216104c

The recipe's files are in kadet-hub/recipes. All recipes