Discover Packages
github.com/kubemq-io/kubemq-bridges
examples
aggregate
command
Version:
v1.3.1
Opens a new window with list of versions in this module.
Published: Sep 29, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
KubeMQ Bridges - Aggregate Example
In this example we demonstrate how to aggregate data from multiple clusters as sources (in this case events) and send all the events to single cluster as targets for further processing.
Run
Run the following deployment
kubectl apply -f ./deploy.yaml
Where deploy.yaml:
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: KubemqCluster
metadata:
name: kubemq-cluster-c
namespace: kubemq
spec:
replicas: 3
grpc:
expose: NodePort
nodePort: 30503
---
apiVersion: core.k8s.kubemq.io/v1alpha1
kind: KubemqCluster
metadata:
name: kubemq-cluster-d
namespace: kubemq
spec:
replicas: 3
grpc:
expose: NodePort
nodePort: 30504
---
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"
- address: "kubemq-cluster-b-grpc.kubemq.svc.cluster.local:50000"
channel: "queue1"
- address: "kubemq-cluster-c-grpc.kubemq.svc.cluster.local:50000"
channel: "queue1"
targets:
kind: target.queue
name: cluster-targets
connections:
- address: "kubemq-cluster-d-grpc.kubemq.svc.cluster.local:50000"
channels: "queue1"
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.