Interview Prep/Kubernetes/Configuration & Storage

What is `emptyDir` and when is it used?

BeginnerConceptConfiguration & Storage
Answer

An empty directory created when the Pod is scheduled and deleted with the Pod. It is shared by all containers in the Pod, so it suits scratch space, caches and sidecar hand-offs. medium: Memory backs it with tmpfs (counts against the memory limit); set sizeLimit to bound it.

All Kubernetes questions Roadmap: Kubernetes core

More on Configuration & Storage