Why deletion of a STS application is not deleting OpenEBS Jiva volume pvc's also automatically?

213 views Asked by At

I am running one Mongo DB STS application which is consumed on OpenEBS 0.6.0 Jiva volume and I have deleted this app. But it is not deleting corresponding PVC. How can I clean up my system? Is this the default behavior?

1

There are 1 answers

0
Chandan Sagar Pradhan On

This is because of the statefulset typically do not remove the PVCs when deleted. This is to ensure that the volumes are still available for physical backup kind of requirements. This can be deleted by manually by using below command

kubectl delete pvc <pvc name> -n <name space>