tencent cloud

Tencent Kubernetes Engine

Release Notes and Announcements
Release Notes
Announcements
Release Notes
Product Introduction
Overview
Strengths
Architecture
Scenarios
Features
Concepts
Native Kubernetes Terms
Common High-Risk Operations
Regions and Availability Zones
Service Regions and Service Providers
Open Source Components
Purchase Guide
Purchase Instructions
Purchase a TKE General Cluster
Purchasing Native Nodes
Purchasing a Super Node
Getting Started
Beginner’s Guide
Quickly Creating a Standard Cluster
Examples
Container Application Deployment Check List
Cluster Configuration
General Cluster Overview
Cluster Management
Network Management
Storage Management
Node Management
GPU Resource Management
Remote Terminals
Application Configuration
Workload Management
Service and Configuration Management
Component and Application Management
Auto Scaling
Container Login Methods
Observability Configuration
Ops Observability
Cost Insights and Optimization
Scheduler Configuration
Scheduling Component Overview
Resource Utilization Optimization Scheduling
Business Priority Assurance Scheduling
QoS Awareness Scheduling
Security and Stability
TKE Security Group Settings
Identity Authentication and Authorization
Application Security
Multi-cluster Management
Planned Upgrade
Backup Center
Cloud Native Service Guide
Cloud Service for etcd
TMP
TKE Serverless Cluster Guide
TKE Registered Cluster Guide
Use Cases
Cluster
Serverless Cluster
Scheduling
Security
Service Deployment
Network
Release
Logs
Monitoring
OPS
Terraform
DevOps
Auto Scaling
Containerization
Microservice
Cost Management
Hybrid Cloud
AI
Troubleshooting
Disk Full
High Workload
Memory Fragmentation
Cluster DNS Troubleshooting
Cluster kube-proxy Troubleshooting
Cluster API Server Inaccessibility Troubleshooting
Service and Ingress Inaccessibility Troubleshooting
Common Service & Ingress Errors and Solutions
Engel Ingres appears in Connechtin Reverside
CLB Ingress Creation Error
Troubleshooting for Pod Network Inaccessibility
Pod Status Exception and Handling
Authorizing Tencent Cloud OPS Team for Troubleshooting
CLB Loopback
API Documentation
History
Introduction
API Category
Making API Requests
Elastic Cluster APIs
Resource Reserved Coupon APIs
Cluster APIs
Third-party Node APIs
Relevant APIs for Addon
Network APIs
Node APIs
Node Pool APIs
TKE Edge Cluster APIs
Cloud Native Monitoring APIs
Scaling group APIs
Super Node APIs
Other APIs
Data Types
Error Codes
TKE API 2022-05-01
FAQs
TKE General Cluster
TKE Serverless Cluster
About OPS
Hidden Danger Handling
About Services
Image Repositories
About Remote Terminals
Event FAQs
Resource Management
Service Agreement
TKE Service Level Agreement
TKE Serverless Service Level Agreement
Contact Us
Glossary

CFSTURBO-CSI

PDF
Focus Mode
Font Size
Last updated: 2024-02-28 18:04:47

Component Overview

The Kubernetes-csi-tencentcloud CFSTURBO plugin implements the CSI interface, facilitating the usage of Tencent Cloud's CFS Turbo Cloud File Storage within a container cluster.

Use Cases

Cloud File Storage CFS Turbo is ideal for large-scale throughput and mixed workload businesses, providing private protocol mounting. The performance of a single client can match that of the storage cluster. You can pair it with Cloud Virtual Machine (CVM), Tencent Kubernetes Engine (TKE), BatchCompute, and other services.
CFS Turbo is effortlessly accessible. No need to adjust your existing business structure or undertake complex configurations. In just three steps, you can complete the access and usage of the file system: create a file system, enable the file system client on the server, and subsequently mount the created file system. With the CFSTURBO-CSI extension component, CFS Turbo can swiftly be brought into play within a container cluster by using the standard native Kubernetes.

Use Limits

The CFSTURBO-CSI extension component requires a Kubernetes version of 1.14 or later.
For use limits of CFS Turbo, see Use Limits.
To use CFS Turbo in TKE, it is required to install such an extension component in the cluster, which will occupy certain system resources.

csfTurbo-csi Permission

Permission Description

The permission of this component is the minimal dependency required for the current feature to operate.
It is required to mount the host /var/lib/kubelet related directory to the container to complete the mount/umount of the volume, hence the activation of the privileged-level container is required.

Permission Scenarios

Feature
Involved Object
Involved Operation Permission
Supporting dynamic creation/deletion of cfsturbo subdirectory type pv
persistentvolumeclaims/persistentvolumes/storageclasses
get/list/watch/create/delete/update
node
get/list/

Permission Definition

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: cfsturbo-csi-controller-role
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete", "update"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["events"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list", "watch"]


Directions

Installing a Component

1. Log in to the Tencent Kubernetes Engine Console, and choose Cluster from the left navigation bar.
2. In the Cluster list, click the desired Cluster ID to access its detailed page.
3. Select Component Management from the left-side menu, and click Create on the Component Management page.
4. In the Create page, select the CFSTurbo.
5. Click Done to install the component.

Specifying StorageClass

Step 1: Create a CFS Turbo Type StorageClass

1. In the cluster list, click a cluster ID to enter the cluster details page.
2. Select Storage > StorageClass from the left menu bar, then click Create on the StorageClass page.
3. In the Create StorageClass page, configure the StorageClass parameters as shown below:



Configuration Item
Description
Name
Enter the StorageClass name.
Region
It is the region of the cluster by default.
Provisioner
Select Cloud File Storage CFS Turbo here.
CFS Turbo
Please select the already created CFS Turbo. If you do not have a suitable CFS Turbo, please go to the Cloud File Storage console to create a new one. For details, see Creating File Systems and Mount Targets.
Reclaim Policy
Two reclaim policies are provided: Delete and Retain. For data security, it is recommended to use the Retain reclaim policy.
Delete: If a PV is dynamically created through a PVC, the PV and storage instance bound to the PVC will be automatically terminated when the PVC is terminated.
Retain: If a PV is dynamically created through a PVC, the PV and storage instance bound to the PVC will be retained when the PVC is terminated.
4. Click Create StorageClass to complete the creation.

Step 2: Create a PersistentVolumeClaim

1. In the cluster list, click a cluster ID to enter the cluster details page.
2. Select Storage > PersistentVolumeClaim from the left menu bar, and click Create on the PersistentVolumeClaim page.
3. On the Create PersistentVolumeClaim page, set the key parameters of your PVC.
Configuration Item
Description
Name
Enter the name of the PersistentVolumeClaim.
Namespace
A namespace is used to assign cluster resources. Select default here.
Provisioner
Select Cloud File Storage CFS Turbo.
Read/Write Permission
CFS only supports multi-server read and write.
Specify StorageClass or Not
Select Specify.
Note:
The PVC and PV will be bound to the same StorageClass.
Do not specify implies that the StorageClass value of this PVC will be empty, corresponding to a void value under the storageClassName field in the YAML file as a character string.
StorageClass
Choose the StorageClass created in the steps above.
Specify a PersistentVolume or Not
Specify the PersistentVolume according to demand. Note:
The system first searches the current cluster for PVs that meet the binding rules. If there are no such PVs, the system dynamically creates a PV to be bound based on the PVC and StorageClass parameters.
Either the StorageClass or PersistVolume should be specified.
For more details on Not Specifying PersistVolume, see PV and PVC Binding Rules.
4. Click Create PersistentVolumeClaim.

Step 3: Create a workload

1. In the cluster list, click a cluster ID to enter the cluster details page.
2. Select Workload > Deployment from the left menu bar, and click Create on the Deployment page.
3. On the Create Deployment page, configure Workload parameters. For parameter details, see Creating a Deployment. Based on actual requirements, choose Use existing PVC for the data volume and select the PVC you have created.
4. After mounting to the specified path in the container, click Create Deployment.

Not Specifying StroageClass

Step 1: Create a PersistentVolume

1. In the cluster list, click a cluster ID to enter the cluster details page.
2. Select Storage > PersistentVolume in the left menu bar, and click Create on the PersistentVolume page.
3. On the Create PersistentVolume page, configure the key parameters for PV as shown below:



Configuration Item
Description
Source Setting
Select Static Creation.
Name
Enter the name of the PersistentVolume.
Provisioner
Select Cloud File Storage CFS Turbo.
Read/Write Permission
CFS only supports multi-server read and write.
Specify StorageClass or Not
Select Do not specify.
CFS Turbo
Please select the created CFS Turbo. If you do not have a suitable CFS Turbo, please go to the Cloud File Storage console to create a new one. For details, see Creating File Systems and Mount Targets.
CFS Turbo Root Directory
Fill in according to the root directory of the mount point information in CFS Turbo.
CFS Turbo Subdirectory
Fill in according to the subdirectory of the mount point information in CFS Turbo.
4. Click Create PersistentVolume to complete the creation.

Step 2: Create a PersistentVolumeClaim

1. In the cluster list, click a cluster ID to enter the cluster details page.
2. Select Storage > PersistentVolumeClaim in the left menu bar, and click Create on the PersistentVolumeClaim page.
3. On the Create PersistentVolumeClaim page, configure the key parameters of your PVC.
Configuration Item
Description
Name
Enter the name of the PersistentVolumeClaim.
Namespace
A namespace is used to assign cluster resources. Select default here.
Provisioner
Select Cloud File Storage CFS Turbo.
Read/Write Permission
CFS only supports multi-server read and write.
Specify StorageClass or Not
Select Do not specify.
Note:
The PVC and PV will be bound to the same StorageClass.
Do not specify implies that the StorageClass value of this PVC will be empty, corresponding to a void value under the storageClassName field in the YAML file as a character string.
StorageClass
Choose the StorageClass created in the steps above.
Specify a PersistentVolume or Not
Specify the PersistentVolume according to demand. Note:
The system first searches the current cluster for PVs that meet the binding rules. If there are no such PVs, the system dynamically creates a PV to be bound based on the PVC and StorageClass parameters.
Either the StorageClass or PersistVolume should be specified.
For details on Not Specifying PersistVolume, see PV and PVC Binding Rules.
4. Click Create PersistentVolumeClaim.

Step 3: Create a workload

1. In the cluster list, click a cluster ID to enter the cluster details page.
2. Select Workload > Deployment in the left menu bar, and click Create on the Deployment page.
3. In the Create Deployment page, configure the workload parameters. For more details, see Creating a Deployment. According to actual requirements, choose Use Existing PVC for the data volume and select the created PVC.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback