Set Persistent Volume

Set Volume Size

Kubemqctl
Helm
kubectl

Flags

Flag
Type/Options
Default
Description
--volume-size
string
""
Desired size of Persisted Volume Claim
--volume-storageClass
string
"default"
Set persisted volume storage class

Examples

Create KubeMQ Cluster with 30Gi Persistent Volume Claim:
1
kubemqctl create cluster -v 30Gi
Copied!
Create Kubemq Cluster with 30Gi Persistent Volume Claim and specific Storage Class name:
1
kubemqctl create cluster -v 30Gi --volume-storage-class "your-storage-class-name"
Copied!

Values

Value
Type/Options
Default
Description
volume.size
string
""
Desired size of Persisted Volume Claim
volume.storageClass
string
"default"
Set persisted volume storage class

Examples

Create Kubemq Cluster with 30Gi Persistent Volume Claim:
1
helm install kubemq-cluster --set volume.size=30Gi -n kubemq kubemq-charts/kubemq
Copied!
Create Kubemq Cluster with 30Gi Persistent Volume Claim with specific Storage Class name:
1
helm install kubemq-cluster --set volume.size=30Gi,volume.storageClass="your-storage-class-name" -n kubemq kubemq-charts/kubemq
Copied!

Fields

Field
Type/Options
Default
Description
size
string
""
Desired size of Persisted Volume Claim
storageClass
string
"default"
Set persisted volume storage class

Examples

Create Kubemq Cluster with 30Gi Persistent Volume Claim:
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
volume:
11
size: 30Gi
Copied!
Create Kubemq Cluster with 30Gi Persistent Volume Claim with specific Storage Class name:
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
volume:
11
size: 30Gi
12
storageClass: "your-storage-class-name"
Copied!
Last modified 9mo ago
Copy link