A node-local persistent volume (PV) uses a disk or filesystem on a particular node. A Pod using it is bound to that disk and node; if either becomes unavailable, the Pod becomes unavailable too. section 17.4.1
Anthos on bare metal provides three local PV storage classes:
- LVP node mounts: one PV per disk mounted under a specified directory, with the disk’s capacity. section 17.4.1
- LVP share: PVs backed by subdirectories of a local filesystem on each node; workloads share its capacity and I/O operations per second. section 17.4.1
- Anthos system: preconfigured PVs for system Pods. Do not modify or delete this class, or use it for stateful applications. section 17.4.1
storage:
lvpNodeMounts:
path: /mnt/localpv-disk
storageClassName: local-disks
lvpShare:
path: /mnt/localpv-share
storageClassName: local-shared
numPVUnderSharedPath: 5
The cluster storage configuration shows paths and storage-class names for node mounts and shared local volumes, plus the number of PVs under the shared path. section 17.4.1
Use local PVs when workloads can tolerate disk or node failure, or when data is replicated elsewhere and recoverable. They generally suit proofs of concept or advanced use cases rather than workloads whose persistence depends on one disk. section 17.4.1
