Set Rest Interface
Kubemqctl
Helm
yaml

Flags

Flag
Type/Options
Default
Description
--rest-disabled
bool
false
Disable rest interface
--rest-port
int
9090
Set rest port value
--rest-expose
string
ClusterIP
Desired service type
--rest-node-port
int
Desired port number in NodePort expose type
--rest-buffer-size
int
0
Set subscribe message / requests buffer size to use on server
--rest-body-limit
int
0
Set Max size of payload in bytes
Expose Options:
ClusterIP/NodePort/LoadBalancer

Example

Expose Rest interface port with a NodePort:
1
kubemqctl create cluster --rest-expose NodePort --rest-node-port 30600
Copied!

Values

value
Type/Options
Default
Description
rest.disabled
bool
false
Disable rest interface
rest.port
int
9090
Set rest port value
rest.expose
string
ClusterIP
Desired service type
rest.nodePort
int
Desired port number in NodePort expose type
rest.bufferSize
int
0
Set subscribe message / requests buffer size to use on server
rest.bodyLimit
int
0
Set Max size of payload in bytes
Expose Options:
ClusterIP/NodePort/LoadBalancer

Examples

Expose Rest interface port with a NodePort:
1
helm install kubemq-cluster --set rest.expose=NodePort,rest-nodePort=30600 -n kubemq kubemq-charts/kubemq
Copied!

Fields

Field
Type/Options
Default
Description
disabled
bool
false
Disable rest interface
port
int
9090
Set rest port value
expose
string
ClusterIP
Desired service type
nodePort
int
Desired port number in NodePort expose type
bufferSize
int
0
Set subscribe message / requests buffer size to use on server
bodyLimit
int
0
Set Max size of payload in bytes
Expose Options:
ClusterIP/NodePort/LoadBalancer

Example

Expose Rest interface port with a NodePort:
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
rest:
11
expose: NodePort
12
nodePort: 30600
Copied!
Last modified 1yr ago
Copy link