Set Api Interface
Kubemqctl
Helm
yaml

Flags

Flag
Type/Options
Default
Description
--api-disabled
bool
false
Disable API interface
--api-port
int
8080
Set API port value
--api-expose
string
ClusterIP
Desired service type
--api-node-port
int
Desired port number in NodePort expose type
Expose Options:
ClusterIP/NodePort/LoadBalancer

Example

Expose Api interface port with a NodePort:
1
kubemqctl create cluster --api-expose NodePort --api-node-port 30700
Copied!

Values

value
Type/Options
Default
Description
api.disabled
bool
false
Disable API interface
api.port
int
8080
Set API port value
api.expose
string
ClusterIP
Desired service type
api.nodePort
int
Desired port number in NodePort expose type
Expose Options:
ClusterIP/NodePort/LoadBalancer

Examples

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

Fields

Field
Type/Options
Default
Description
disabled
bool
false
Disable API interface
port
int
8080
Set API port value
expose
string
ClusterIP
Desired service type
nodePort
int
Desired port number in NodePort expose type
Expose Options:
ClusterIP/NodePort/LoadBalancer

Example

Expose Api 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
api:
11
expose: NodePort
12
nodePort: 30700
Copied!
Last modified 1yr ago
Copy link