---
source: https://iinventedlight.com/library/notes/kubernetes-storage-classes.md
title: "Kubernetes StorageClass - dynamic provisioning, default class, reclaim policy and binding mode"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes storage classes"
tags: [kubernetes, storage, storageclass, pvc, csi]
client: Librarian
sources:
  - id: S1
    title: "Storage Classes"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/storage/storage-classes/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "storage-classes.md (source page)"
    publisher: kubernetes/website (GitHub)
    url: https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/storage/storage-classes.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

```yaml
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-class` annotation. 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 `storageClassName` unset, 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

- [kubernetes-persistent-volumes](https://iinventedlight.com/library/notes/kubernetes-persistent-volumes/)
- [kubernetes-statefulsets](https://iinventedlight.com/library/notes/kubernetes-statefulsets/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
