Set Api Interface

Kubemqctl
Helm
yaml
Kubemqctl

Flags

Flag

Type/Options

Default

Description

--api-disabled

bool

false

Disable api interface

--api-port

int

8080

Set api port value

Expose Options:

ClusterIP/NodePort/LoadBalancer

Example

Expose Api interface port with a NodePort:

kubemqctl create cluster --api-expose NodePort --api-node-port 30700
Helm

Values

value

Type/Options

Default

Description

api.disabled

bool

false

Disable api interface

api.port

int

8080

Set api port value

Expose Options:

ClusterIP/NodePort/LoadBalancer

Examples

Expose Api interface port with a NodePort:

helm install kubemq-cluster --set api.expose=NodePort,api-nodePort=30700 -n kubemq kubemq-charts/kubemq
yaml

Fields

Field

Type/Options

Default

Description

disabled

bool

false

Disable api interface

port

int

50000

Set api port value

Expose Options:

ClusterIP/NodePort/LoadBalancer

Example

Expose Api interface port with a NodePort:

Run:

kubectl apply -f {below-yaml-file}
apiVersion: core.k8s.kubemq.io/v1alpha1
kind: KubemqCluster
metadata:
name: kubemq-cluster
namesapce: kubemq
labels:
app: kubemq-cluster
spec:
replicas: 3
api:
expose: NodePort
nodePort: 30700