Can someone please explain this: ``` the persistent volume claim should use a p . . .

Akhil Sharma:
Can someone please explain this:

the persistent volume claim should use a physical volume which last for the lifetime of the pod.

How to achieve this? From my guess it’s just playing with reclaim policy. We need to set it to Delete instead of Retain by patching, but still not sure…any ideas?

OE:
That’s probably the best approach. If it just asked for a volume and not a PV, emptyDir would have been the best option. Out of curiosity, where did you run into this question?

Akhil Sharma:
:sweat_smile: someone reached out to me for doubt. I also suggested him the same approach.
He got something similar in CKA

AB:
@OE if its a question then is not answer would be create a PV with volume mount with emptyDir and reclaim in PVC?

OE:
PV does not support emptyDir (https://kubernetes.io/docs/concepts/storage/persistent-volumes/#types-of-persistent-volumes). Instead, you would do as Akhil mentioned - create a local PV and make it’s reclaim policy Delete

AB:
Thanks. By default its Retain. Delete would be the right answer.