Storage
Last updated
Last updated
Allows for persistent data.
Use spec.containers[*].volumeMounts
and spec.volumes
:
With basic hostPath
, data is stored directly on EACH node, not shared.
Various volume types exist we can use.
Lets us store data centrally in a pool.
We then claim the data with a persistent volume claim (PVC)
Looks for matching claims.
We can select one ourselves with labels and selectors.
PV and PVC are one to one
If one cannot be matched with the required resources the PVC will stay in pending state
Once PVC deleted we can choose to automatically delete the underlying PV, retain it, or recycle it.
Provisioner dynamically provisions when we need storage.
Creates a pv for us automatically when we create a claim if we associate it: