-
Notifications
You must be signed in to change notification settings - Fork 0
/
rabbitmq_instance.yaml
55 lines (55 loc) · 1.36 KB
/
rabbitmq_instance.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: indeed.com/v1alpha1
kind: RabbitMQCustomResource
metadata:
name: myrabbitmq
namespace: rabbitmqs
spec:
rabbitMQImage: "rabbitmq:3.7.8-alpine"
initContainerImage: "busybox:latest"
createLoadBalancer: true
replicas: 3
compute:
cpuRequest: "300m"
memory: "512Mi"
storage:
storageClassName: rook-ceph-block
limit: "1Gi"
clusterSpec:
highWatermarkFraction: 0.4
policies:
- name: "mypolicy"
vhost: "/"
pattern: ".*"
applyTo: "queues"
definition:
ha-mode: "exactly"
ha-params: 2
ha-sync-mode: "automatic"
operatorPolicies:
- name: "myoperatorpolicy"
vhost: "/"
pattern: ".*"
applyTo: "queues"
definition:
max-length: 1000
shovels:
- name: "myshovel"
source:
queue: "myqueue"
vhost: "/"
destination:
addresses:
- address: "myrabbitmq-svc" # shovel messages from this cluster to itself
vhost: "/"
secretName: "mynewadmin-myrabbitmq-user-secret" # user created below
secretNamespace: "rabbitmqs"
users:
- username: "mynewadmin"
tags:
- "administrator"
vhosts:
- vhostName: "/"
permissions:
configure: ".*"
write: ".*"
read: ".*"