StorageClass
A cluster-wide policy that tells Kubernetes how to create new volumes on demand: which driver, which settings, and what happens on delete.
In more detail
Claims ask for a class by name, so application manifests do not need provider details. The provisioner field names the CSI driver, parameters select performance and topology, and volumeBindingMode and reclaimPolicy shape timing and deletion. One class can be marked as the default.
Example
kubectl get storageclass course-standardRelated terms
- CSI — The standard interface storage vendors implement so Kubernetes can create, attach and mount their volumes without vendor code in Kubernetes itself.
- reclaim policy — The setting that decides what happens to a volume's real storage when its claim is deleted: Delete removes it, Retain keeps it.
- dynamic provisioning — Creating a new volume automatically when a claim asks for one, instead of an administrator creating disks in advance.
- volume binding mode — A StorageClass setting that decides whether a volume is created as soon as a claim exists or only once a pod that uses it is scheduled.
Taught in
- CNI, CSI, CRI And CRDs: The Plug-In Points — Certified Kubernetes Administrator (CKA) Exam Prep
- StorageClasses: Why A Claim Waits For Its Pod — Certified Kubernetes Administrator (CKA) Exam Prep
- Volumes By Hand: Access Modes, Binding And Reclaim — Certified Kubernetes Administrator (CKA) Exam Prep
- Persistent And Ephemeral Volumes — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Custom Resources And Operators — Certified Kubernetes Application Developer (CKAD) Exam Prep
- The Status Tells You Where To Look: Troubleshooting Pods — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Bookings That Survive The Pod: Volumes And Claims — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Orchestration Sprint: Four Fixes, No Walls Removed — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Forty Four Of Sixty: The Full Mock, And How To Read It — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Festival, End To End: Final Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- A Pod That Mounts The Node: Runtime, Pods And Storage — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Volumes, PersistentVolumes And PersistentVolumeClaims — Kubernetes: Production-Grade Container Orchestration
- StorageClasses, CSI And Dynamic Provisioning — Kubernetes: Production-Grade Container Orchestration
- StatefulSets, Stable Identity And Data Recovery — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: Pending Claims And Failed Mounts — Kubernetes: Production-Grade Container Orchestration