You stand up a Kubernetes cluster, install one CSI driver, and every PVC in the cluster lands on the same disks. Six months later the staging Postgres is competing for IOPS with the marketing analytics ETL, an archival log retention PVC is sitting on $/GiB-month NVMe, and the cluster’s default StorageClass is whatever the installer happened to pick. The cluster is not over-provisioned — it is uniformly provisioned, which is the same shape of waste with none of the headroom. Tiering is not a premium feature; it is the difference between “we have storage” and “we have the right storage for each workload.”
What’s happening
A StorageClass is a small object — provisioner, parameters, reclaim policy, binding mode — but each field encodes an operational decision that survives the workload by years. The provisioner says which CSI driver creates the volume. The parameters map is provisioner-specific and decides replica count, IOPS class, encryption, filesystem. reclaimPolicy: Delete deletes the underlying volume when the PVC is deleted; Retain keeps it and forces a human to clean up. volumeBindingMode: WaitForFirstConsumer delays provisioning until a pod schedules, so the volume lands in the same zone as the pod — a default of Immediate will silently scatter volumes across zones and break multi-zone scheduling.
A multi-tier cluster needs at least three StorageClasses: a gold tier for stateful primaries that demand low-latency replicated NVMe (Postgres, Kafka brokers, etcd-backed services), a silver tier for general workloads on local or networked SSD (application caches, replicated services, dev databases), and a bronze tier for cold or large-volume data on HDD or erasure-coded object storage (log archives, backup staging, batch outputs). Reclaim policies should also tier — gold is Retain because deleting a Postgres PVC by accident is a resume-generating event, silver is Delete, bronze is Delete with lifecycle rules.
How to verify
List existing StorageClasses and identify the default:
kubectl get storageclass
# NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
# standard (default) driver.longhorn.io Delete Immediate true 180d
A cluster with one StorageClass marked (default) and no others is the symptom. Confirm by counting PVCs across classes:
kubectl get pvc -A -o jsonpath='{range .items[*]}{.spec.storageClassName}{"\n"}{end}' \
| sort | uniq -c | sort -rn
If 95% of PVCs use the same class, the cluster is single-tier. Inspect the parameters of the existing class:
kubectl get storageclass standard -o yaml | yq '.parameters'
For Longhorn the numberOfReplicas and staleReplicaTimeout parameters tell you whether you’re paying for replication you don’t need (bronze) or not getting replication you do (gold).
The fix
Save the manifests below as storageclasses.yaml and apply with kubectl apply -f storageclasses.yaml. The example assumes Longhorn as the CSI driver for gold/silver and the Longhorn S3-backed bronze, but the structure works for any CSI — substitute the provisioner and parameters for Rook-Ceph, AWS EBS, GCP PD, or your provider’s CSI.
---
# GOLD: replicated NVMe, retain on delete, wait for consumer
# For: production Postgres, etcd, Kafka brokers, anything with state you cannot lose
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gold-nvme-replicated
annotations:
storageclass.kubernetes.io/is-default-class: "false"
stackharbor.com/tier: gold
stackharbor.com/description: "3-replica NVMe for stateful primaries. Retain on delete."
provisioner: driver.longhorn.io
parameters:
numberOfReplicas: "3"
staleReplicaTimeout: "30"
fromBackup: ""
fsType: "ext4"
diskSelector: "nvme"
nodeSelector: "storage-tier=nvme"
dataLocality: "best-effort"
unmapMarkSnapChainRemoved: "ignored"
reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
---
# SILVER: 2-replica SSD, delete on delete, wait for consumer
# For: app caches, replicated services, dev databases, CI scratch
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: silver-ssd
annotations:
storageclass.kubernetes.io/is-default-class: "true"
stackharbor.com/tier: silver
stackharbor.com/description: "2-replica SSD, delete on delete. Default class."
provisioner: driver.longhorn.io
parameters:
numberOfReplicas: "2"
staleReplicaTimeout: "30"
fromBackup: ""
fsType: "ext4"
diskSelector: "ssd"
nodeSelector: "storage-tier=ssd"
dataLocality: "disabled"
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
---
# BRONZE: single-replica HDD, delete on delete
# For: log archives, backup staging, batch outputs, anything cold and large
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: bronze-hdd
annotations:
storageclass.kubernetes.io/is-default-class: "false"
stackharbor.com/tier: bronze
stackharbor.com/description: "Single-replica HDD for cold data. Delete on delete."
provisioner: driver.longhorn.io
parameters:
numberOfReplicas: "1"
staleReplicaTimeout: "60"
fromBackup: ""
fsType: "ext4"
diskSelector: "hdd"
nodeSelector: "storage-tier=hdd"
dataLocality: "disabled"
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
Label nodes with the storage tier they advertise (Longhorn disk.longhorn.io/storage-tier and the equivalent diskSelector tag, plus a node label for scheduling):
# nodes with NVMe drives
kubectl label node node01 storage-tier=nvme
kubectl label node node02 storage-tier=nvme
kubectl label node node03 storage-tier=nvme
# nodes with SSD
kubectl label node node04 storage-tier=ssd
kubectl label node node05 storage-tier=ssd
# nodes with HDD
kubectl label node node06 storage-tier=hdd
Update the default class — only one StorageClass should be is-default-class: "true". Remove the annotation from the old default:
kubectl patch storageclass standard \
-p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
Test each tier with a throwaway PVC:
for tier in gold-nvme-replicated silver-ssd bronze-hdd; do
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: probe-${tier}
namespace: default
spec:
accessModes: [ReadWriteOnce]
storageClassName: ${tier}
resources:
requests:
storage: 1Gi
EOF
done
# Wait and check binding
kubectl get pvc -n default | grep probe-
If a PVC stays Pending, describe it and look at the events:
kubectl describe pvc probe-gold-nvme-replicated -n default | tail -20
The most common reasons for Pending are: no node matches the tier label, the CSI driver doesn’t see disks with the diskSelector tag, or WaitForFirstConsumer is doing its job and no pod has been scheduled yet — that one is not a bug.
Once the tiers work, update workload manifests to be explicit about their tier. Never rely on the default for production stateful sets:
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres
spec:
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ReadWriteOnce]
storageClassName: gold-nvme-replicated # explicit, not default
resources:
requests:
storage: 200Gi
Three operational rules that keep the tiers honest: (1) a quarterly review of PVCs per tier — anything on gold that isn’t a primary stateful workload gets a ticket to move; (2) Retain is paired with a documented cleanup procedure, not a graveyard of orphan PVs; (3) the default class is silver, never gold, so an unannotated workload doesn’t accidentally land on the most expensive storage.
Stack Harbor designs and operates the storage layer for Kubernetes clusters under Managed Cloud Ops — capacity planning, tier audits, CSI driver lifecycle, and snapshot policy included. If your cluster has one StorageClass doing the work of three, scope a storage review.