I wanted to know what's the difference of the reclaimPolicy
in StorageClass
vs. PersistentVolume
.
Currently we created multiple PersistentVolume
with a StorageClass
that has a reclaimPolicy
of Delete
, however we changed the PersistentVolume
's reclaimPolicy
manually via kubectl patch pv PV_NAME -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
to have a Retain
value.
what will happen now if I try to delete the StorageClass
or even the cluster or accidentily remove pvc
' s does the value of the StorageClass
has any effect on the pv
even after creating?