Creating a RabbitMQ Broker
To use the RabbitMQ Broker, you must have the following installed:
- Knative Eventing
- - our recommendation is latest release
- - easiest integration with RabbitMQ Messaging Topology Operator
- RabbitMQ Messaging Topology Operator - our recommendation is with CertManager
Install the RabbitMQ controller by running the command:
Verify that and
rabbitmq-broker-webhook
are running:Example output:
NAME READY UP-TO-DATE AVAILABLE AGE
eventing-controller 1/1 1 1 10s
eventing-webhook 1/1 1 1 9s
rabbitmq-broker-controller 1/1 1 1 3s
rabbitmq-broker-webhook 1/1 1 1 4s
Deploy a RabbitMQ cluster:
-
Where
<cluster-name>
is the name you want for your RabbitMQ cluster, for example,rabbitmq
. Apply the YAML file by running the command:
Where
<filename>
is the name of the file you created in the previous step.
-
Wait for the cluster to become ready. When the cluster is ready,
ALLREPLICASREADY
will betrue
in the output of the following command:kubectl get rmq <cluster-name>
Where
<cluster-name>
is the name you gave your cluster in the step above.
For more information about configuring the RabbitmqCluster
CRD, see the RabbitMQ website.