Kubernetes StorageClass - dynamic provisioning, default class, reclaim policy and binding mode
Answer: Create a StorageClass with a provisioner, parameters and reclaimPolicy, then set storageClassName on the PersistentVolumeClaim. A StorageClass provides a way for administrators to describe the classes of storage they offer; PVCs that name no class get the default one.
Example
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: low-latency
annotations:
storageclass.kubernetes.io/is-default-class: "false"
provisioner: csi-driver.example-vendor.example
reclaimPolicy: Retain
allowVolumeExpansion: true
mountOptions:
- discard
volumeBindingMode: WaitForFirstConsumer
parameters:
guaranteedReadWriteLatency: "true"
Key fields
| Field | Specifies | |---|---| | provisioner | determines what volume plugin is used for provisioning PVs; must be specified | | reclaimPolicy | Delete or Retain for dynamically created PersistentVolumes; defaults to Delete | | allowVolumeExpansion | lets you resize the volume by editing the PVC; volumes can only grow, not shrink | | volumeBindingMode | Immediate by default, or WaitForFirstConsumer |
Default class
- When a PVC does not specify a
storageClassName, the default StorageClass is used. - Mark the default with the
storageclass.kubernetes.io/is-default-classannotation. With more than one default, Kubernetes uses the most recently created one; try to keep only one. - A PVC created while no default exists keeps
storageClassNameunset, and the control plane fills it in when a default becomes available. - A PVC with
storageClassName: ""is never updated to the default.
Binding mode
With Immediate, binding and provisioning happen once the PVC is created, without knowledge of the Pod's scheduling requirements, which may leave Pods unschedulable on topology-constrained storage. WaitForFirstConsumer delays binding and provisioning until a Pod using the PVC is created, so the volume follows the Pod's scheduling constraints.
See also
Claims
- id: C1 claim: reclaimPolicy defaults to Delete. source: S2 evidence: "it will default to
Delete."
- id: C2 claim: Volume expansion can only grow a volume. source: S2 evidence: "only use the volume expansion feature to grow a Volume, not to shrink it."
- id: C3 claim: Immediate is the default volume binding mode. source: S1 evidence: "When unset, Immediate mode is used by default."
Sources
- [S1] Storage Classes. Kubernetes docs. https://kubernetes.io/docs/concepts/storage/storage-classes/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] storage-classes.md (source page). kubernetes/website (GitHub). https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/storage/storage-classes.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Storage Classes; kubernetes/website (GitHub), storage-classes.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Storage Classes; kubernetes/website (GitHub), storage-classes.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "Kubernetes StorageClass - dynamic provisioning, default class, reclaim policy and binding mode." iinventedlight Library, iil:note:t0dftghp, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-storage-classes/. License: CC-BY-4.0.
@misc{iil_note_t0dftghp,
author = {{iinventedlight}},
title = {{Kubernetes StorageClass - dynamic provisioning, default class, reclaim policy and binding mode}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-storage-classes/},
note = {Permanent ID iil:note:t0dftghp. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- kubernetes-storage-classes.table.json (table; CC-BY-4.0)
- kubernetes-storage-classes.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-storage-classes.md.