Expand volume
You can expand the storage volume size of each pod.
Before you start
Run the command below to check whether the cluster STATUS is Running
. Otherwise, the following operations may fail.
kbcli cluster list kafka-cluster
Steps
Use
kbcli cluster volume-expand
command, configure the resources required and enter the cluster name again to expand the volume.kbcli cluster volume-expand --storage=30G --components=kafka --volume-claim-templates=data kafka-cluster
--components
describes the component name for volume expansion.--volume-claim-templates
describes the VolumeClaimTemplate names in components.--storage
describes the volume storage size.
Validate the volume expansion.
kbcli cluster list kafka-cluster
>
NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME
kafka-cluster default redis kafka-3.3.2 Delete Updating May 11,2023 15:27 UTC+0800