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
|
|
@ -2,3 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
resources:
|
||||
- ../../base
|
||||
|
||||
patches:
|
||||
- path: rabbitmq.patch.yaml
|
||||
|
|
|
|||
7
apps/rabbitmq-cluster/overlays/work/rabbitmq.patch.yaml
Normal file
7
apps/rabbitmq-cluster/overlays/work/rabbitmq.patch.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
apiVersion: rabbitmq.com/v1beta1
|
||||
kind: RabbitmqCluster
|
||||
metadata:
|
||||
name: rabbitmq-main
|
||||
annotations:
|
||||
rabbitmq.com/topology-allowed-namespaces: "work-rabbitmq-service"
|
||||
|
||||
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
|
||||
11
apps/rabbitmq-service/overlays/work/config.json
Normal file
11
apps/rabbitmq-service/overlays/work/config.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"appName": "rabbitmq-service",
|
||||
"userGivenName": "rabbitmq-service",
|
||||
"destNamespace": "work-rabbitmq-services",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "apps/rabbitmq-service/overlays/work",
|
||||
"srcRepoURL": "ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
5
apps/rabbitmq-service/overlays/work/kustomization.yaml
Normal file
5
apps/rabbitmq-service/overlays/work/kustomization.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: work-rabbitmq-service
|
||||
resources:
|
||||
- ../../base
|
||||
Loading…
Add table
Add a link
Reference in a new issue