Ephemeral Storage
Cheat sheet · https://pcornel.dk/topic.php?topic=3845
Answer
Ephemeral storage is useful for caches, scratch space, temporary build data and other replaceable state. Its value comes from treating data loss as an expected lifecycle event rather than an exceptional storage failure.
Remember
- Ephemeral does not mean memory-only; it may use SSD/HDD backing.
- Ephemeral data can survive some reboots yet still be unsupported across instance recreation or rescheduling.
- Critical state placed on ephemeral storage creates an application durability defect even when the storage device is healthy.
- Performance can be excellent without offering persistence guarantees.
First checks
kubectl describe pod <pod> | grep -A3 emptyDir— ephemeral volumesdf -h /tmp /var/lib/docker— ephemeral usagelsblk | grep nvme— instance store disks (cloud)
Verify in this order
workload → ephemeral volume → lost on restart
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Storage Fundamentals → Ephemeral Storage reference map
| Boundary | What it means | Evidence limit |
|---|---|---|
| Consumer view | What the workload/OS believes is available | Does not prove lower-layer allocation, path or media health |
| Logical storage | Volume/LUN/share/pool/datastore or object namespace presented to the consumer | Object existence does not prove backing capacity or correct ownership |
| Transport/backing | Protocol, path, controller, storage service and protection that carry/persist I/O | Path/control-plane health does not prove application data |
| Acceptance | Original data can be written, committed and read back correctly by the intended workload | Required for end-to-end closure |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3845