forked from rabbitmq/messaging-topology-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlazy-queue.yaml
28 lines (28 loc) · 808 Bytes
/
lazy-queue.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
# For more information on lazy queues, see: https://www.rabbitmq.com/lazy-queues.html.
# We recommend configuring queues through policies to manage them in groups and be able to update queue configurations later on.
---
apiVersion: rabbitmq.com/v1beta1
kind: Policy
metadata:
name: lazy-queue-policy
spec:
name: lazy-queue-policy
vhost: "test-vhost"
pattern: "^lazy-queue-" # matches any queue begins with "lazy-queue-"
applyTo: "queues"
definition:
queue-mode: lazy
rabbitmqClusterReference:
name: test
---
apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: lazy-queue-example
spec:
name: lazy-queue-example # matches the pattern "^lazy-queue$" set in lazy-queue-policy
vhost: "test-vhost"
autoDelete: false
durable: true
rabbitmqClusterReference:
name: test