CBS-CSI Component enables TKE clusters to quickly select storage types through the console and create corresponding block storage cloud disk type PVs and PVCs. This document provides an overview of the CBS-CSI component's features and introduces several common use case examples.
Item
SDK
Note
Static volume
Supports manual creation of volumes, PV objects, and PVC objects.
Dynamic volume
Supports configuration, creation, and deletion of volumes and PV objects through StorageClass.
Storage topology awareness
CBS does not support cross-AZ mounting. In a cluster with multiple AZs, the CBS-CSI add-on will schedule pods first, and then volumes will be created in the AZ of the node where the pods are scheduled.
Scheduler awareness of node maxAttachLimit
By default, one Tencent CVM can mount up to 20 cloud disks. When scheduling pods, the scheduler will filter out nodes where the maximum number of mounted cloud disks has been exceeded.
Volume online expansion
You can modify the capacity field of PVC to implement online expansion (only CBS types are supported).
Volume snapshot and restoration
Supports creation of volumes through snapshots.
Description
After deployment in a cluster, the CBS-CSI add-on contains the following components:
DaemonSet (NodePlugin): each node provides a DaemonSet. It consists of two containers, CBS-CSI Driver and node-driver-registrar. It is used to register the Driver for the node and provide the mounting capability.
StatefulSet and Deployment (Controller): consists of a Driver and multiple Sidecars (external-provisioner, external-attacher, external-resizer, external-snapshotter, and snapshot-controller). It provides the capabilities to create or delete volumes, attach or detach, expand, snapshot, etc.
The example diagram is shown below:
Limits
TKE cluster version ≥ 1.14
You can expand cloud disks online and create snapshots in a TKE cluster only after using the CBS-CSI add-on.
You can continue to use QcloudCbs (In-Tree plugin) in your TKE cluster. (It will be integrated to CBS-CSI through Volume Migration in the future.)