chore(work): test rabbitmq message topology operator
This commit is contained in:
parent
807798946f
commit
c3ea681f33
8 changed files with 68 additions and 0 deletions
6
apps/rabbitmq-service/base/kustomization.yaml
Normal file
6
apps/rabbitmq-service/base/kustomization.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- vhost.yaml
|
||||
- queue.yaml
|
||||
- policy.yaml
|
||||
13
apps/rabbitmq-service/base/policy.yaml
Normal file
13
apps/rabbitmq-service/base/policy.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: rabbitmq.com/v1beta1
|
||||
kind: Policy
|
||||
metadata:
|
||||
name: test
|
||||
spec:
|
||||
name: test-policy
|
||||
applyTo: "queues"
|
||||
pattern: "test-queue"
|
||||
definition:
|
||||
expires: 86400000
|
||||
rabbitmqClusterReference:
|
||||
name: rabbitmq-main
|
||||
namespace: work-rabbitmq-clusters
|
||||
13
apps/rabbitmq-service/base/queue.yaml
Normal file
13
apps/rabbitmq-service/base/queue.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: rabbitmq.com/v1beta1
|
||||
kind: Queue
|
||||
metadata:
|
||||
name: test # name of this custom resource; does not have to the same as the actual queue name
|
||||
spec:
|
||||
name: test-queue # name of the queue
|
||||
vhost: "/test-work-vhost"
|
||||
type: quorum
|
||||
autoDelete: true
|
||||
durable: true
|
||||
rabbitmqClusterReference:
|
||||
name: rabbitmq-main
|
||||
namespace: work-rabbitmq-clusters
|
||||
10
apps/rabbitmq-service/base/vhost.yaml
Normal file
10
apps/rabbitmq-service/base/vhost.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: rabbitmq.com/v1beta1
|
||||
kind: Vhost
|
||||
metadata:
|
||||
name: test-vhost
|
||||
spec:
|
||||
name: test-vhost
|
||||
defaultQueueType: quorum
|
||||
rabbitmqClusterReference:
|
||||
name: rabbitmq-main
|
||||
namespace: work-rabbitmq-clusters
|
||||
Loading…
Add table
Add a link
Reference in a new issue