#Reuse the existing volume

1 messages · Page 1 of 1 (latest)

vale crater
#

IHAC who is asking they have a PV which is set to retain and if they accidentally delete the deployment then trident will create a new pvc i.e. a volume on FSxN. How can they reuse the same volume which was retained previously?

It is MySQL database on the volume. The customer is also using the deployment using CICD pipeline and this was an actual case happened where a misconfiguration in the pipeline delete their deployment in staging.

The customer is looking for a kubernetes way to map the volume instead of tridentctl import

deft inlet
#

Did the PVCs get removed too? I tested this in a lab and removing the deployment left the PVs and PVCs. The recreation of the deployment used the existing PVs and PVCs.

vale crater
#

Yes, the PVC also was removed. Upon creating it also created a new flexvol because a new PV and PVC was created.

Did you had an flag somewhere or clause that doesn't remove the PVC and PV

coarse relic