You can mount local storage volumes to pods in clusters of Alibaba Cloud Container Service for Kubernetes (ACK). You can also provision local storage volumes as persistent volumes (PVs) and use the CSI plug-in to mount the PVs to pods by using persistent volume claims (PVCs).

Usage notes

  • The following types of volumes are supported: hostPath, local, logical volume (LV), and memory.
  • Local storage volumes do not provide high availability and are applicable to only scenarios where temporary storage is required or where applications can provide high availability.
  • The storage medium of local volumes can be local disks of Elastic Compute Service (ECS) instances, cloud disks provided by Alibaba Cloud, or memory. For more information, see Local disks and Cloud disks overview.
  • hostPath: provided by Kubernetes. A hostPath volume mounts a file or directory from the file system of the host node to a pod. hostPath volumes can automatically create a directory if no directory exists in the mount path. Pods that are mounted with hostPath volumes can be scheduled to other nodes.
  • local: provided by Kubernetes. A local volume mounts a local storage device to a pod, such as a disk, partition, or directory. Pods that are mounted with local volumes are scheduled based on scheduling policies configured in the corresponding PV.
  • LV: Logical Volume Manager (LVM) virtualizes local disks by creating volume groups (VGs) and LVs. You can mount LVs to pods.

    Alibaba Cloud uses LVM to support the automatic creation, deletion, and isolation of LVs. Alibaba Cloud also allows you to automate the operations and maintenance (O&M) of VGs, configure the input/output operations per second (IOPS) of LVs, and size the storage capacity of LVs.

  • Memory: Memory resources can be virtualized as a tmpfs (RAM-backed filesystem). You can mount a memory volume to provide fast local storage.