Command
KubeMQ Bridges Command source provides an RPC command subscriber for processing target commands.

Prerequisites

The following are required to run the command source connector:
  • kubemq cluster
  • kubemq-bridges deployment

Configuration

Command source connector configuration properties:
Properties Key
Required
Description
Example
address
yes
kubemq server address (gRPC interface)
kubemq-cluster-a-grpc.kubemq.svc.cluster.local:50000
client_id
no
set client id
"client_id"
auth_token
no
set authentication token
JWT token
channel
yes
set channel to subscribe
group
no
set subscriber group
auto_reconnect
no
set auto reconnect on lost connection
"false", "true"
reconnect_interval_seconds
no
set reconnection seconds
"5"
max_reconnects
no
set how many time to reconnect
"0"
Example:
1
bindings:
2
- name: command-binding
3
properties:
4
log_level: error
5
retry_attempts: 3
6
retry_delay_milliseconds: 1000
7
retry_max_jitter_milliseconds: 100
8
retry_delay_type: "back-off"
9
rate_per_second: 100
10
sources:
11
kind: source.command # Sources kind
12
name: 3-clusters-source # sources name
13
connections: # Array of connections settings per each source kind
14
- address: "kubemq-cluster-a-grpc.kubemq.svc.cluster.local:50000"
15
client_id: "cluster-a-command-connection"
16
auth_token: ""
17
channel: "command"
18
group: ""
19
- address: "kubemq-cluster-b-grpc.kubemq.svc.cluster.local:50000"
20
client_id: "cluster-b-command-connection"
21
auth_token: ""
22
channel: "command"
23
group: ""
24
- address: "kubemq-cluster-c-grpc.kubemq.svc.cluster.local:50000"
25
client_id: "cluster-c-command-connection"
26
auth_token: ""
27
channel: "command"
28
group: ""
29
targets:
30
.....
Copied!
Last modified 11mo ago