concept

Persistent claims and retention

Trace StatefulSet claim templates, PVC retention and PV reclaim policies before scaling or deleting a stateful workload.

Formal Syntax & Structure

kubernetes syntaxkubernetes
Persistent claims and retention

Working Example

Example Snippetkubernetes
volumeClaimTemplates:- metadata:    name: data  spec:    accessModes:    - ReadWriteOnce    storageClassName: ledger-study-storage    resources:      requests:        storage: 1GipersistentVolumeClaimRetentionPolicy:  whenDeleted: Retain  whenScaled: Retain
Kubernetes Reference