rmq-messaging-topology-operator
RabbitMQ Messaging Topology Operator Overview
Secure your stack with a hardened RabbitMQ Messaging Topology Operator image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
RabbitMQ Messaging Topology Operator is a Kubernetes operator that lets developers create and manage RabbitMQ messaging topologies within a RabbitMQ cluster using a declarative Kubernetes API. It works alongside the RabbitMQ Cluster Operator.
Try It Out
Prerequisites
- A running Kubernetes cluster
- RabbitMQ Cluster Operator installed in the cluster
- A RabbitMQ cluster deployed using the Cluster Operator
- cert-manager v1.2.0 or above installed in the cluster
kubectlinstalled and configured- Helm v3.8 or higher for OCI support (Installation instructions)
Step 1: Start Cluster
If you have a cluster to work with, skip this step. Otherwise, start a Minikube cluster. Deployment instructions
Step 2: Create a Namespace
Create a namespace for the operator:
kubectl create namespace rabbitmq-systemStep 3: Prepare the Manifest
Download the operator manifest:
curl -sL https://github.com/rabbitmq/messaging-topology-operator/releases/latest/download/messaging-topology-operator-with-certmanager.yaml \
-o messaging-topology-operator.yamlNext, we need to edit the file messaging-topology-operator.yaml to point to the Minimus registry:
containers:
- image: reg.mini.dev/rmq-messaging-topology-operator:latestIf you have yq installed, you can run the following command to make the change:
yq -i '
select(.kind == "Deployment" and .metadata.name == "messaging-topology-operator")
|= .spec.template.spec.containers[0].image = "reg.mini.dev/rmq-messaging-topology-operator:latest"
' messaging-topology-operator.yamlStep 4: Install the RabbitMQ Messaging Topology Operator
Apply the manifest:
kubectl apply -f messaging-topology-operator.yamlWait a minute and check that the operator Pod is up and running:
kubectl -n rabbitmq-system get poThe operator Pod should be listed and running, for example:
NAME READY STATUS RESTARTS AGE
messaging-topology-operator-7d4b6f8c9f-x2k4n 1/1 Running 0 1mVerify that the expected Minimus image is in use:
kubectl -n rabbitmq-system describe deploy messaging-topology-operator | grep Image:It should return:
Image: reg.mini.dev/rmq-messaging-topology-operator:latestStep 5: Create a Messaging Topology Resource
With the operator running, you can declaratively manage RabbitMQ resources such as queues, exchanges, bindings, users, vhosts, policies, permissions, federations, etc.
For example, create a queue by saving the following to test-queue.yaml. Add in you RabbitMQ cluster name:
apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: test-queue
spec:
name: test-queue
rabbitmqClusterReference:
name: <your-rabbitmq-cluster-name>Apply it:
kubectl apply -f test-queue.yamlCheck the queue status:
kubectl get queuesFor more examples, see the upstream examples and the usage guide.
Technical Considerations
The RabbitMQ Messaging Topology Operator image provided by Minimus is a slim, security-hardened alternative to the public image. The images are largely interchangeable, with a few differences as noted below.
RabbitMQ Messaging Topology Operator built by Minimus:
- Runs as non-root by default for a security-first approach that protects against privilege escalation attacks.
- Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.