Overview
Tencent Kubernetes Engine (TKE) allows you to use Cloud File Storage (CFS) by creating persistent volumes (PVs) and persistent volume claims (PVCs) and mounting volumes to workloads. This document describes how to mount a CFS disk to a workload in a cluster by using the following two methods:
Preparations
Installing the CFS add-on
Note:
If your cluster has been installed with the CFS-CSI add-on, skip this step.
- Log in to the TKE console.
- Click Cluster in the left sidebar to go to the Cluster Management page.
- Choose the ID of the cluster for which you want to create an add-on and click Add-On Management in the left sidebar on the cluster details page.
- On the Add-On Management page, click Create to go to the Create Add-On page.
- Select CFS and click Done.
Directions
Dynamically creating a CFS disk
To dynamically create a CFS disk, complete the following steps:
- Create a StorageClass of the CFS type and define a CFS template.
- Create a PVC by using the StorageClass and further define the CFS parameters.
- Select the created PVC when creating a workload volume and configure the container mount point.
Using an existing CFS disk
To use an existing CFS disk, complete the following steps:
- Create a PV by using an existing CFS disk.
- When creating a PVC, set the same StorageClass and capacity as that for the preceding PV.
- When creating a workload, select the preceding PVC.
For more information on how to use CFS, see README_CFS.md.
Was this page helpful?