This message was deleted.
# general
a
This message was deleted.
c
Look into the retention policy. iirc by default it doesn't delete files from disk when you delete the pv.
If that's what you're expecting it to do.
There is nothing that is actually "terminated". The helper pod just creates the directory so that it can be mounted. It doesn't actually hang around to provide any sort of service.
o
OK. From the documentation I was expecting the helper pod to also run the script defined under teardown in the local path configmap. That essentially is an
rm -rf
on the local pv folder.
Where can I find the retention policy? There is a reclaimPolicy defined for the storageclass... But that is set to "Delete".
c
Yeah if that's set to delete it should delete the files when the PV is deleted. That is as close to teardown as it gets.
The pv itself is gone, not just the PVC?
o
Depends: when I delete the pvc both are gone. When I delete the pv only, nothing happens. But in both cases
kubectl delete ...
displays successful deletion and hangs until I press Ctrl+C or close the terminal.