Skip to content

Instantly share code, notes, and snippets.

@felipeneuwald
Created July 6, 2020 20:59
Show Gist options
  • Save felipeneuwald/cdc1c2489ff0cd0329a4a84745fd9c7f to your computer and use it in GitHub Desktop.
Save felipeneuwald/cdc1c2489ff0cd0329a4a84745fd9c7f to your computer and use it in GitHub Desktop.
the-billion-message-rabbitmq: 003-ConfigMap.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: rabbitmq
namespace: rabbitmq
data:
RABBITMQ_ERLANG_COOKIE: "L66sEftynCGaLe3bCxG3TbPe3oXBTLrhCKpULeM4ZQHYA33nTrJ2spC7yyKvsRTP"
RABBITMQ_DEFAULT_USER: "rabbitmq"
enabled_plugins: |
[rabbitmq_management,rabbitmq_peer_discovery_k8s].
rabbitmq.conf: |
cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s
cluster_formation.k8s.host = kubernetes.default.svc.cluster.local
cluster_formation.k8s.address_type = hostname
cluster_formation.node_cleanup.interval = 30
cluster_formation.node_cleanup.only_log_warning = true
cluster_partition_handling = autoheal
queue_master_locator=min-masters
loopback_users.guest = false
definitions.json: |
{
"policies": [
{
"vhost": "/",
"name": "ha-all_lazy-all",
"pattern": ".",
"apply-to": "all",
"definition": {
"ha-mode": "all",
"queue-mode": "lazy"
},
"priority": 0
}
]
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment