I am trying to deploy a pod in kubernetes using helm which use a persistent volume that it is going to disconnect its pvc each time that I redeploy.
When I do that the persistent volume it goes to state "released" and my pod cannot attach it and stay in "pending" without apply the pvc.
Here my pv:
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM
backend-pv 2Gi RWO Delete Released backend/***
How I can release automatically the pv to stay in state available each time that I redeploy with helm?
I already know that I can delete the claimRef manually and it goes available again but i would like to do it automatically. Any help?
Thank you
I expect to redeploy with helm my component and keep attach to the persistent volume without deleting anything manually.