Overview
Tencent Cloud Tencent Kubernetes Engine (TKE) allows you to use Cloud Block Storage (CBS) disks by creating PersistentVolumes (PVs) and PersistentVolumeClaims (PVCs) and mounting volumes to workloads. This document describes how to mount a CBS disk to a workload in a cluster by using the following two methods:
Note:
When CBS is used through PV and PVC, a cloud disk only supports the creation of one PV, and it can only be mounted by one cluster node at any time.
Directions
Dynamically creating a CBS disk
To dynamically create a CBS disk, you generally need to complete the following steps:
1. Create a StorageClass of the CBS type and define a CBS template.
Note:
TKE provides a default StorageClass named cbs, which is configured with a Premium Cloud Storage cloud disk in a randomly selected availability zone in pay-as-you-go mode.
You can customize a StorageClass as required.
2. Create a PVC by using the StorageClass and further define the CBS parameters.
Using an existing CBS disk
You can use an existing CBS disk as follows:
1. Use an existing CBS disk to create a PV.
2. When creating a PVC, use the same StorageClass and capacity as that for the existing PV.
Apakah halaman ini membantu?