- Documentation
Volcengine Kubernetes Engine
Volcengine Kubernetes Engine
User guide
Storage
vePFS volumes
NFS access methods
Using vePFS PVs via NFS
NFS access methods
Using vePFS PVs via NFS
Using vePFS PVs via NFS
VKE supports vePFS access over the Network File System (NFS) protocol. This topic describes how to access vePFS over NFS by using the kubectl command-line tool.
tip
[Beta] The protocol service NFS is at the beta stage. To use this service, contact your account manager.
Prerequisites
- vePFS protocol support has been enabled, and an NFS vePFS filesystem has been created.
- The kubectl tool has already been installed locally, and the target cluster has been connected by using kubectl. For details, see Connecting to a cluster.
Using statically provisioned vePFS PVs
- Create a YAML file for the PV. The following vke-pfs-static-pv.yaml file serves as an example:
- Run the following command to create the PV.
- Create a YAML file for the PVC. The following vke-pfs-static-pvc.yaml file serves as an example:
- Run the following command to create the PVC.
- Run the following command to view the result of the static association between the PVC and PV.
- If the response is similar to the following one, the binding is successful.
Step 3: Create an application and mount the PV
- Create a YAML file for the Deployment. The following deployment-nginx-static.yaml file serves as an example:
- Run the following command to create the Deployment.
Using dynamically provisioned vePFS PVs
Step 1: Create a StorageClass
- Create a YAML file for the SC. The following vke-pfs-sc.yaml file serves as an example:
- Run the following command to create the StorageClass.
- Create a YAML file for the PVC. The following vke-pfs-dynamic-pv.yaml file serves as an example:
- Run the following command to create the PVC.
- Run the following command to view the result of the dynamic binding between the PVC and StorageClass.
- If the response is similar to the following one, it indicates that the PVC and the PV are dynamically bound through the StorageClass configured by vePFS.
Step 3: Create an application and mount the PV
- Create a YAML file for the Deployment. The following deployment-nginx-dynamic.yaml file serves as an example:
- Run the following command to create the Deployment.
After creating a workload and mounting a PV to it as described in the preceding steps, you can verify the volume mounting status and persistent storage via the following methods.
- Run the following command to check whether the PV is mounted to the specified path in the pod.
- The expected response is as follows.
- Check the mount path in the pod to view the data in the PV.
- The expected response is as follows.
- Check the mount path of the PV in the newly created pod.
- The expected result is as follows. You can see that the file written to the PV still exists and is not deleted along with the pod. This indicates that persistent storage of data is achieved.
Last updated: 2026.07.24 10:53:32