rabbitmq-configmap.yaml 1.0 KB

12345678910111213141516171819202122232425262728
  1. kind: ConfigMap
  2. apiVersion: v1
  3. metadata:
  4. name: rmq-cluster-config
  5. namespace: public-service
  6. labels:
  7. addonmanager.kubernetes.io/mode: Reconcile
  8. data:
  9. enabled_plugins: |
  10. [rabbitmq_management,rabbitmq_peer_discovery_k8s].
  11. rabbitmq.conf: |
  12. loopback_users.guest = false
  13. default_user = RABBITMQ_USER
  14. default_pass = RABBITMQ_PASS
  15. ## Clustering
  16. cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s
  17. cluster_formation.k8s.host = kubernetes.default.svc.cluster.local
  18. cluster_formation.k8s.address_type = hostname
  19. #################################################
  20. # public-service is rabbitmq-cluster's namespace#
  21. #################################################
  22. cluster_formation.k8s.hostname_suffix = .rmq-cluster.public-service.svc.cluster.local
  23. cluster_formation.node_cleanup.interval = 10
  24. cluster_formation.node_cleanup.only_log_warning = true
  25. cluster_partition_handling = autoheal
  26. ## queue master locator
  27. queue_master_locator=min-masters