Skip to main content

Kubernetes Volumes

PersistentVolumes

0:00
LearnStep 1/2

PersistentVolumes

PersistentVolumes (PV)

A PersistentVolume (PV) is a piece of storage provisioned by an administrator or dynamically provisioned using Storage Classes.

PersistentVolume Manifest

yaml

Access Modes

  • ReadWriteOnce (RWO): Volume can be mounted read-write by single node
  • ReadOnlyMany (ROX): Volume can be mounted read-only by many nodes
  • ReadWriteMany (RWX): Volume can be mounted read-write by many nodes

Reclaim Policies

  • Retain: Keep PV after PVC is deleted (manual cleanup)
  • Delete: Delete PV when PVC is deleted
  • Recycle: Basic scrub (rm -rf) - deprecated

View PersistentVolumes

bash