-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdeploy.yaml
47 lines (47 loc) · 1.01 KB
/
deploy.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
apiVersion: core.k8s.kubemq.io/v1alpha1
kind: KubemqCluster
metadata:
name: kubemq-cluster-a
namespace: kubemq
spec:
replicas: 3
grpc:
expose: NodePort
nodePort: 30501
---
apiVersion: core.k8s.kubemq.io/v1alpha1
kind: KubemqCluster
metadata:
name: kubemq-cluster-b
namespace: kubemq
spec:
replicas: 3
grpc:
expose: NodePort
nodePort: 30502
---
apiVersion: core.k8s.kubemq.io/v1alpha1
kind: KubemqConnector
metadata:
name: kubemq-bridges
namespace: kubemq
spec:
type: bridges
replicas: 1
image: kubemq/kubemq-bridges:latest
config: |-
bindings:
- name: clusters-sources
properties:
log_level: "debug"
sources:
kind: source.queue
connections:
- address: "kubemq-cluster-a-grpc.kubemq.svc.cluster.local:50000"
channel: "queue1"
targets:
kind: target.queue
name: cluster-targets
connections:
- address: "kubemq-cluster-b-grpc.kubemq.svc.cluster.local:50000"
channels: "queue1"