Set Resources Limits
Kubemqctl
Helm
kubectl

Flags

Flag
Type/Options
Default
Description
--resources-enabled
bool
false
Enable resources configuration
--resources-limits-cpu
string
"2"
Set Limits CPU
--resources-limits-memory
2Gi
string
Set Limits Memory
--resources-requests-cpu
string
"2"
Set Requests CPU
--resources-requests-memory
string
512M
Set Requests Memory

Example

Set Resources limits:
1
kubemqctl create cluster --resources-enabled true
Copied!
Change default of visibility to 3 minutes:
1
kubemqctl create cluster --queue-default-visibility-seconds 180
Copied!

Values

Value
Type/Options
Default
Description
resources.enable
bool
false
Enable resources configuration
resources.limitsCpu
string
"2"
Set Limits CPU
resources.limitsMemory
2Gi
string
Set Limits Memory
resources.requestsCpu
string
"2"
Set Requests CPU
resources.requestsMemory
string
512M
Set Requests Memory

Example

Set Resources limits:
1
helm install kubemq-cluster --set resources.enable=true kubemq-charts/kubemq
Copied!
Change default of visibility to 3 minutes:
1
helm install kubemq-cluster --set queue.defaultVisibilitySeconds=180 kubemq-charts/kubemq
Copied!

Fields

Field
Type/Options
Default
Description
limitsCpu
string
"2"
Set Limits CPU
limitsMemory
2Gi
string
Set Limits Memory
requestsCpu
string
"2"
Set Requests CPU
requestsMemory
string
512M
Set Requests Memory

Example

Set Resources limits:
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
resources:
11
limitsCpu: "2"
12
limitsMemory: 2Gi
13
requestsCpu: "1"
14
requestsMemory: 512Mi
Copied!
Last modified 9mo ago
Copy link