Set Routing
Kubemqctl
Helm
kubectl

Flags

Flag
Type/Options
Default
Description
--routing-data
string
""
Set routing data
--routing-file
string
""
set routing file
--routing-url
string url
""
Set routing data loading url
--routing-auto-reload
int
0
Set auto reload routing data from url

Example

Set predefined routing rules data where routing.json is json array of routing rules:
1
kubemqctl create cluster --routing-file ./routing.json
Copied!

Values

Value
Type/Options
Default
Description
routing.data
string
""
Set routing data
routing.url
string url
""
Set routing data loading url
routing.autoReload
int
0
Set auto reload routing data from url

Example

Set predefined routing rules data where routing.json is json array of routing rules:
1
helm install kubemq-cluster --set-file routing.data=./routing.json kubemq-charts/kubemq
Copied!

Fields

Field
Type/Options
Default
Description
data
string
""
Set routing data
url
string url
""
Set routing data loading url
autoReload
int
0
Set auto reload routing data from url

Example

Set predefined routing rules data where routing.json is json array of routing rules:
Run:
1
kubectl apply -f {below-yaml-file}
Copied!
1
apiVersion: core.k8s.kubemq.io/v1alpha1
2
kind: KubemqCluster
3
metadata:
4
name: kubemq-cluster
5
namesapce: kubemq
6
labels:
7
app: kubemq-cluster
8
spec:
9
replicas: 3
10
authorization:
11
data: |-
12
[
13
{
14
"Key":"all-to-foo-bar",
15
"Routes": "events:foo.bar;events_store:foo.bar;queues:foo.bar"
16
},
17
{
18
"Key":"sink-to-events-channel",
19
"Routes": "events:sink"
20
}
21
]
Copied!
Last modified 1yr ago
Copy link