https://github.com/jharting/openshift-rabbitmq-cluster
Deploys a RabbitMQ cluster in OpenShift
https://github.com/jharting/openshift-rabbitmq-cluster
kubernetes openshift rabbitmq rabbitmq-cluster
Last synced: 3 months ago
JSON representation
Deploys a RabbitMQ cluster in OpenShift
- Host: GitHub
- URL: https://github.com/jharting/openshift-rabbitmq-cluster
- Owner: jharting
- Created: 2018-02-14T15:08:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-21T18:45:48.000Z (over 4 years ago)
- Last Synced: 2025-03-27T19:11:28.058Z (3 months ago)
- Topics: kubernetes, openshift, rabbitmq, rabbitmq-cluster
- Homepage:
- Size: 8.79 KB
- Stars: 39
- Watchers: 4
- Forks: 51
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openshift-rabbitmq-cluster
Deploys a RabbitMQ cluster in Openshift.
[rabbitmq-peer-discovery-k8s](https://github.com/rabbitmq/rabbitmq-peer-discovery-k8s) is used for peer discovery. [StatefulSet](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/) is used to give RabbitMQ instances stable names and persistent volumes.
## Usage
Run
`oc create -f rabbitmq-cluster-template.yaml`
to install the template. Then, use the OpenShift UI to locate the template and use it to create a new RabbitMQ cluster.
Alternatively, run
`oc process -f rabbitmq-cluster-template.yaml NAMESPACE="$(oc project --short)" | oc create -f -`
to process the template and create a new cluster in the current project with the default settings. There are several [parameters that can be used to customize the cluster](/rabbitmq-cluster-template.yaml#L10).
Expected outcome:
```
Cluster status of node rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local ...
[{nodes,
[{disc,
['rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local',
'rabbit@rabbitmq-cluster-1.rabbitmq-cluster.delta.svc.cluster.local']}]},
{running_nodes,
['rabbit@rabbitmq-cluster-1.rabbitmq-cluster.delta.svc.cluster.local',
'rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local']},
{cluster_name,
<<"rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local">>},
{partitions,[]},
{alarms,
[{'rabbit@rabbitmq-cluster-1.rabbitmq-cluster.delta.svc.cluster.local',
[]},
{'rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local',
[]}]}]
```