How is Volume different to Persistent Volume?
Volume
- Created when a Pod is created
- Attaches to a newly-created container in the Pod when the previous container is destroyed
- Destroyed when the Pod is destroyed
Never ever use Volume to store permanent data.
Persistent Volume
- Its lifecycle is not dependent on Pods
- It’s not placed inside of a Pod