concept

PV PVC and StorageClass

Understand how Kubernetes connects a storage request to a volume, and how static and dynamic provisioning differ.

Formal Syntax & Structure

kubernetes syntaxkubernetes
PV PVC and StorageClass

Working Example

Example Snippetkubernetes
apiVersion: v1kind: PersistentVolumeClaimmetadata:  name: catalog-data  namespace: storage-studyspec:  storageClassName: study-zonal  accessModes:    - ReadWriteOnce  volumeMode: Filesystem  resources:    requests:      storage: 2Gi
Kubernetes Reference