Storage
Volumes
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.
PersistentVolumes
Lets us store data centrally in a pool.
We then claim the data with a persistent volume claim (PVC)
Persistent Volume Claims
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.
Storage Classes
Provisioner dynamically provisions when we need storage.
Creates a pv for us automatically when we create a claim if we associate it:
Last updated