local-path-provisioner icon indicating copy to clipboard operation
local-path-provisioner copied to clipboard

Issue about pvc

Open itsogkyc opened this issue 5 years ago • 1 comments

When pod is deleted , can pvc be deleted automatically?

itsogkyc avatar Apr 20 '20 01:04 itsogkyc

PVC deletion is up to the user since it's persistent and has a lifecycle longer than the pod. PV can be deleted along with PVC is reclaimPolicy is delete. See https://kubernetes.io/docs/concepts/storage/persistent-volumes for details.

If you don't want persistent volume, you can use emptyDir instead.

yasker avatar Apr 20 '20 02:04 yasker