项目作者: jharting

项目描述 :
Deploys a RabbitMQ cluster in OpenShift
高级语言:
项目地址: git://github.com/jharting/openshift-rabbitmq-cluster.git
创建时间: 2018-02-14T15:08:19Z
项目社区:https://github.com/jharting/openshift-rabbitmq-cluster

开源协议:

下载


openshift-rabbitmq-cluster

Deploys a RabbitMQ cluster in Openshift.

rabbitmq-peer-discovery-k8s is used for peer discovery. 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.

Expected outcome:

  1. Cluster status of node rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local ...
  2. [{nodes,
  3. [{disc,
  4. ['rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local',
  5. 'rabbit@rabbitmq-cluster-1.rabbitmq-cluster.delta.svc.cluster.local']}]},
  6. {running_nodes,
  7. ['rabbit@rabbitmq-cluster-1.rabbitmq-cluster.delta.svc.cluster.local',
  8. 'rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local']},
  9. {cluster_name,
  10. <<"rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local">>},
  11. {partitions,[]},
  12. {alarms,
  13. [{'rabbit@rabbitmq-cluster-1.rabbitmq-cluster.delta.svc.cluster.local',
  14. []},
  15. {'rabbit@rabbitmq-cluster-0.rabbitmq-cluster.delta.svc.cluster.local',
  16. []}]}]