by smartbit · 3y ago · 0 comments
persistentVolumeReclaimPolicy: Retain
Alternatively set the reclaimPolicy on the StorageClass https://kubernetes.io/docs/concepts/storage/storage-classes/... for retaining all PVs of that SC after deletion of a PVC: reclaimPolicy: Retain
If Lily Cohen would have used either, recovery would have been possible. Of course then Lily would have to explicitly delete the PVs to prevent getting billed for the storage.On production systems "reclaimPolicy: Retain" on the storageClass feels like a no brainer to (mostly) avoid such disaster.