Generic ephemeral volumes
Generic Ephemeral Volumes in Kubernetes are a feature that allows you to provision ephemeral (temporary), per-pod volumes using existing StorageClasses and CSI drivers, without needing to predefine PersistentVolumeClaims (PVCs).
They combine the flexibility of dynamic provisioning with the simplicity of pod-level volume declaration.
-
They are temporary volumes that are automatically:
-
created when the Pod starts
-
deleted when the Pod terminates
-
-
Use the same underlying mechanisms as PersistentVolumeClaim
-
Require a CSI (Container Storage Interface) driver that supports dynamic provisioning
TOC
Example ephemeral volumes
This automatically creates a temporary PVC for the Pod using the specified StorageClass.
Podwill create aPVCby using this template.
Key features
When to Use Generic Ephemeral Volumes
-
When you need temporary storage with features like:
-
Resizable volumes
-
Snapshots
-
Encryption
-
Non-node-local storage (e.g., cloud block storage)
-
-
Ideal for:
-
Caching intermediate data
-
Temporary working directories
-
Pipelines, AI/ML workflows
-