

Note: MongoDB is used as the example throughout these notes. The concepts — Volumes, PV, PVC — are not MongoDB-specific. They apply to any stateful application (PostgreSQL, MySQL, Redis, etc.) that needs data to survive pod restarts.
Official docs: https://kubernetes.io/docs/concepts/storage/persistent-volumes/