Config, storage and stateLesson 4 of 6
  1. ConfigMaps, not reconciled
  2. Secrets and external secret stores, not reconciled
  3. Volumes inside a pod, not reconciled
  4. PersistentVolumes, claims and StorageClasses, not reconciled
    1. PV, PVC, StorageClass
    2. Dynamic provisioning
    3. Default StorageClass
    4. Access modes
    5. Binding mode
    6. Reclaim and expansion
    7. CSI
    8. Pending PVCs
  5. StatefulSets, not reconciled
  6. Snapshots, clones and volume attributes, not reconciled

PersistentVolumes, claims and StorageClasses

Storage that outlives the pod. A claim asks for capacity and an access mode, a StorageClass provisions it through a CSI driver, and a PersistentVolume holds the data until its reclaim policy says otherwise.

  • 26 min
  • 5 objectives
  • 8 scenes
  • Includes an On AWS layer

Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.

The volumes in the ephemeral volumes lesson die with their pod. A database, an upload directory or a message log needs storage that survives the pod being deleted, rescheduled to another node or replaced by a rollout. Kubernetes models that storage with three objects, and it splits them so that the people who run applications and the people who run storage each write only their own part.

Reconcile, in 8 scenes

PV, PVC, StorageClass

A PersistentVolumeA cluster-scoped object that represents one piece of real storage, such as a cloud disk, an NFS export or a directory on a node, with a capacity, access modes and a reclaim policy. (PV) is the storage itself. A PersistentVolumeClaimA namespaced request for storage: a size, access modes and optionally a class. Pods mount claims, never PersistentVolumes directly. (PVC) is an application’s request for storage. A StorageClassA cluster-scoped object that names a provisioner and the parameters it uses to create volumes on demand. describes a kind of storage the cluster can create.

The claim asks, the class provisions, the volume holds the data. A developer writes a claim and a pod that mounts it:

# data-pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: data
spec:
  accessModes: ["ReadWriteOnce"]
  resources:
    requests:
      storage: 1Gi
---
# writer.yaml
apiVersion: v1
kind: Pod
metadata:
  name: writer
spec:
  containers:
  - name: app
    image: busybox:1.37
    command: ["sh", "-c", "sleep 3600"]
    volumeMounts:
    - name: data
      mountPath: /data
  volumes:
  - name: data
    persistentVolumeClaim:
      claimName: data

A control loop in the control plane binds each claim to a PersistentVolume. The match has to satisfy the claim’s size, access modes, class and label selector, and the claim gets at least what it asked for, possibly more if the only matching volume is larger. Binding is one-to-one and exclusive: the volume’s claimRef points at the claim and the claim’s volumeName points back. A claim with no match stays unbound indefinitely and binds as soon as a matching volume appears.

Volumes can be created ahead of time by an administrator, which is static provisioning, or on demand from a class, which is dynamic provisioning and the norm on any cloud. Classes partition the pool: a volume with storageClassName: fast binds only to claims that ask for fast, and a volume with no class binds only to claims that ask for no class. A claim with a label selector binds only to existing volumes that carry those labels; the provisioner never creates a volume for it.

Two finalizers protect data in use. kubernetes.io/pvc-protection keeps a deleted claim in Terminating while any pod object still uses it, and kubernetes.io/pv-protection keeps a deleted volume around while it is bound.

Dynamic provisioning

A StorageClass names a provisioner, usually a CSI driver, and the parameters to pass it. When a claim asks for the class, the provisioner creates the backing storage, creates a PersistentVolume for it, and the binder pairs the two. Here is a second class for kx, using the same node-local provisioner as its default class:

# fast-class.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: fast
provisioner: rancher.io/local-path
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer

The fields that matter:

  • provisioner selects the driver. parameters are opaque to Kubernetes and passed to that driver: a disk type, IOPS, a file system, an encryption key.
  • reclaimPolicy is copied into every PersistentVolume the class creates. It defaults to Delete.
  • volumeBindingMode decides when provisioning happens. It defaults to Immediate.
  • allowVolumeExpansion permits growing claims later. mountOptions and allowedTopologies refine how and where volumes are made.

The API server refuses changes to provisioner, parameters, reclaimPolicy and volumeBindingMode after a class is created. To change them, create another class and point claims at it; existing volumes keep the settings they were made with.

A claim provisioned on demand
kubectl get storageclass
NAME                 PROVISIONER             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
standard (default)   rancher.io/local-path   Delete          WaitForFirstConsumer   false                  60s
kubectl apply -f data-pvc.yaml
persistentvolumeclaim/data created
kubectl get pvc data
NAME   STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
data   Pending                                      standard       <unset>                 5s
kubectl get events --field-selector involvedObject.name=data
LAST SEEN   TYPE     REASON                 OBJECT                       MESSAGE
10s         Normal   WaitForFirstConsumer   persistentvolumeclaim/data   waiting for first consumer to be created before binding
kubectl apply -f writer.yaml
pod/writer created
kubectl wait --for=condition=Ready pod/writer
pod/writer condition met
kubectl get pvc data
NAME   STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
data   Bound    pvc-85694271-5cb3-4bab-9fc4-fc111ace4711   1Gi        RWO            standard       <unset>                 25s
kubectl get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM          STORAGECLASS   VOLUMEATTRIBUTESCLASS   REASON   AGE
pvc-85694271-5cb3-4bab-9fc4-fc111ace4711   1Gi        RWO            Delete           Bound    default/data   standard       <unset>                          15s

Three things to read from it. The claim named no class, yet it shows standard: that is the default class at work. It stayed Pending until a pod used it, because the class waits for a consumer. And the provisioned volume is named pvc- plus the claim’s UID and carries the class’s Delete policy.

Default StorageClass

The annotation storageclass.kubernetes.io/is-default-class: "true" marks a class as the default. When a claim is created without storageClassName, the DefaultStorageClass admission plugin fills in the default’s name. If several classes carry the annotation, Kubernetes uses the most recently created one; keep exactly one, and treat several as a transient state while you migrate.

A claim can be created while no default exists. Its storageClassName stays unset, and with retroactive default StorageClass assignment, GA in Kubernetes 1.28, the control plane sets it on every such claim as soon as a default appears. That also makes switching defaults safe: remove the annotation from the old class, add it to the replacement, and claims created in between are picked up.

kubectl patch storageclass standard -p '{"metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
kubectl patch storageclass fast -p '{"metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

Access modes

A claim lists the access modes it needs, and only a volume that supports all of them can bind:

ModeShort formMeaning
ReadWriteOnceRWORead-write by a single node. Several pods on that node can share it.
ReadOnlyManyROXRead-only by many nodes.
ReadWriteManyRWXRead-write by many nodes.
ReadWriteOncePodRWOPRead-write by a single pod in the whole cluster. GA in Kubernetes 1.29, CSI volumes only.

Access modes are mostly a matching contract. Kubernetes uses them to pair claims with volumes, and once storage is mounted they do not enforce write protection: a volume bound as ReadOnlyMany is not guaranteed to be read-only. Two cases do constrain use. ReadWriteOncePod is enforced, so a second pod that uses the claim stays Pending. And ReadWriteOnce on attachable block storage is limited by the storage itself, because a disk attached to one node cannot attach to another, so a pod on a second node fails with a Multi-Attach error. A volume is mounted with one mode at a time even if it supports several.

What a CSI volume supports depends on its driver. Claims also choose a volumeMode: Filesystem, the default, formats the device and mounts it, while Block hands the container a raw device through volumeDevices.

Binding mode

With volumeBindingMode: Immediate, provisioning starts as soon as the claim is created. That is fine for storage every node can reach. For storage with topology, such as a disk that exists in one zone or a directory on one node, Kubernetes has to pick the location before any pod exists, without knowing the pod’s node selector, affinity, taints or resource needs. The volume can end up somewhere the pod cannot run.

WaitForFirstConsumer reverses the order. The claim waits until a pod that uses it is created. The scheduler then picks a node for the pod, taking its constraints and the class’s topology into account, and records the choice on the claim in the volume.kubernetes.io/selected-node annotation. The provisioner creates the volume where that node can reach it, and the PersistentVolume carries node affinity so that every later pod using the claim is scheduled where the volume lives.

The scheduler's choice, recorded on the claim
kubectl apply -f data-pvc.yaml -f writer.yaml
persistentvolumeclaim/data created
pod/writer created
kubectl wait --for=condition=Ready pod/writer
pod/writer condition met
kubectl describe pvc data | grep selected-node
               volume.kubernetes.io/selected-node: kx-worker3
kubectl get pod writer -o wide
NAME     READY   STATUS    RESTARTS   AGE   IP           NODE         NOMINATED NODE   READINESS GATES
writer   1/1     Running   0          3s    10.244.3.2   kx-worker3   <none>           <none>

allowedTopologies on a class restricts where volumes may be created at all, for example to two of three zones. With WaitForFirstConsumer it is rarely needed.

Reclaim and expansion

A PersistentVolume’s persistentVolumeReclaimPolicy decides what happens when its claim is deleted:

  • Delete removes the PersistentVolume and the backing storage. Dynamically provisioned volumes inherit it from their class by default. In Kubernetes 1.33 and later, a finalizer makes sure the backing storage is deleted even if someone deletes the PersistentVolume before its claim.
  • Retain keeps both. The volume moves to Released, still holding the data and a claimRef to the deleted claim, so it is not offered to other claims. An administrator recovers the data, then deletes the PersistentVolume and cleans up the storage, or creates a fresh PersistentVolume that points at the same storage asset.
  • Recycle is deprecated; use dynamic provisioning instead.

The policy is a field on each PersistentVolume, so you can protect a dynamically provisioned volume after the fact:

Keep a volume after its claim is gone
kubectl apply -f data-pvc.yaml -f writer.yaml
persistentvolumeclaim/data created
pod/writer created
kubectl wait --for=condition=Ready pod/writer
pod/writer condition met
kubectl patch pv $(kubectl get pvc data -o jsonpath='{.spec.volumeName}') -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
persistentvolume/pvc-85694271-5cb3-4bab-9fc4-fc111ace4711 patched
kubectl delete pvc data --wait=false
persistentvolumeclaim "data" deleted from default namespace
kubectl describe pvc data | grep -E 'Status|Finalizers|Used By'
Status:        Terminating (lasts 0s)
Finalizers:    [kubernetes.io/pvc-protection]
Used By:       writer
kubectl delete pod writer
pod "writer" deleted from default namespace
kubectl wait --for=delete pvc/data --timeout=60s
persistentvolumeclaim/data condition met
kubectl get pvc
No resources found in default namespace.
kubectl get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS     CLAIM          STORAGECLASS   VOLUMEATTRIBUTESCLASS   REASON   AGE
pvc-85694271-5cb3-4bab-9fc4-fc111ace4711   1Gi        RWO            Retain           Released   default/data   standard       <unset>                          34s

The claim stayed Terminating while writer used it, and disappeared once the pod was gone. The volume survived as Released.

To grow a volume, the class must set allowVolumeExpansion: true. You then edit the claim’s spec.resources.requests.storage to a larger value. The CSI driver’s external-resizer grows the backing volume, and the kubelet grows the file system, which Kubernetes supports for XFS, ext3 and ext4. When the driver and file system support online expansion this happens while the pod keeps running; a claim that no pod uses finishes expanding only once a pod mounts it. No PersistentVolume is ever replaced. CSI volume expansion is GA in Kubernetes 1.24.

Volumes never shrink. The API server rejects a request below the claim’s current capacity:

Claims grow but never shrink
kubectl apply -f data-pvc.yaml -f writer.yaml
persistentvolumeclaim/data created
pod/writer created
kubectl wait --for=condition=Ready pod/writer
pod/writer condition met
kubectl patch pvc data -p '{"spec":{"resources":{"requests":{"storage":"500Mi"}}}}'
The PersistentVolumeClaim "data" is invalid: spec.resources.requests.storage: Forbidden: field can not be less than status.capacity

If an expansion fails because the storage cannot provide the size, Kubernetes 1.34 and later let you retry with a smaller request, as long as it is still above status.capacity. Do not edit a PersistentVolume’s capacity by hand: if the claim is then edited to match, the control plane concludes nothing needs resizing.

CSI

The Container Storage InterfaceThe standard gRPC API between Kubernetes and storage drivers, so that drivers ship and upgrade independently of Kubernetes releases. splits a driver into two parts:

  • The controller plugin runs as a Deployment or StatefulSet and talks to the storage system’s API. Sidecars from the Kubernetes CSI project watch the API server on its behalf: external-provisioner creates and deletes volumes for claims, external-attacher attaches volumes to nodes through VolumeAttachment objects, and external-resizer handles expansion.
  • The node plugin runs as a DaemonSet on every node. The kubelet calls it over a Unix socket to format, stage and mount a volume into the pod’s directory, and node-driver-registrar announces it to the kubelet.

A CSIDriver object describes the driver’s capabilities to Kubernetes, and each node’s CSINode object lists the drivers on it with any per-node volume limit. A dynamically provisioned PersistentVolume records spec.csi.driver and the driver’s volumeHandle.

The cloud volume types in the Pod and PersistentVolume API, such as awsElasticBlockStore and gcePersistentDisk, are in-tree types: their drivers were compiled into Kubernetes. CSI migration redirects their operations to the matching CSI driver, and the in-tree drivers are removed: awsElasticBlockStore in Kubernetes 1.27, gcePersistentDisk in 1.28, azureFile in 1.30. A PersistentVolume written with an in-tree type works only if the matching CSI driver is installed. FlexVolume is deprecated since 1.23.

Pending PVCs

A claim that stays Pending always says why in its events, and so does a pod that waits for it. Read the claim first:

Event on the claimWhat it meansWhat fixes it
waiting for first consumer to be created before bindingNormal for WaitForFirstConsumer: no pod uses the claim yet.Create or scale up the workload that mounts it.
no persistent volumes available for this claim and no storage class is setThe claim has no class, no default exists, and no classless volume matches.Mark a class as default, which the claim picks up retroactively.
storageclass.storage.k8s.io "fast" not foundThe claim names a class that does not exist.Create the class. The claim’s storageClassName cannot be changed once set.
Waiting for a volume to be created either by the external provisioner … that never endsThe class names a provisioner that is not installed or is failing.Check the CSI controller’s pods and logs.

On the pod, pod has unbound immediate PersistentVolumeClaims sends you back to the claim, and volume node affinity conflict means the volume exists in a zone or on a node where the pod cannot run, the classic result of Immediate binding with zonal storage.

No default class: the claim and its pod both wait
kubectl patch storageclass standard -p '{"metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
storageclass.storage.k8s.io/standard patched
kubectl get storageclass
NAME       PROVISIONER             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
standard   rancher.io/local-path   Delete          WaitForFirstConsumer   false                  60s
kubectl apply -f data-pvc.yaml
persistentvolumeclaim/data created
kubectl apply -f writer.yaml
pod/writer created
kubectl get pvc data
NAME   STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
data   Pending                                                     <unset>                 20s
kubectl get events --field-selector involvedObject.name=data
LAST SEEN   TYPE     REASON          OBJECT                       MESSAGE
5s          Normal   FailedBinding   persistentvolumeclaim/data   no persistent volumes available for this claim and no storage class is set
kubectl get events --field-selector involvedObject.name=writer
LAST SEEN   TYPE      REASON             OBJECT       MESSAGE
20s         Warning   FailedScheduling   pod/writer   0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.

The empty STORAGECLASS column is the tell: the class list shows standard without (default), so nothing filled in the claim’s class. A class that is named but missing looks different:

A claim that names a class that does not exist
kubectl apply -f reports-pvc.yaml
persistentvolumeclaim/reports created
kubectl get pvc reports
NAME      STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
reports   Pending                                      fast           <unset>                 15s
kubectl get events --field-selector involvedObject.name=reports
LAST SEEN   TYPE      REASON               OBJECT                          MESSAGE
0s          Warning   ProvisioningFailed   persistentvolumeclaim/reports   storageclass.storage.k8s.io "fast" not found

A bound claim with a pod stuck in ContainerCreating is a different stage: attaching and mounting. There the events usually name a Multi-Attach error, because an RWO volume is still attached to another node, often a failed one; a slow detach; or a node that has reached its attachment limit.

Provision, retain and release a volume on kind

  1. kubectl --context kind-kx get storageclass
  2. kubectl --context kind-kx apply -f data-pvc.yaml
  3. kubectl --context kind-kx describe pvc data
  4. kubectl --context kind-kx apply -f writer.yaml
  5. kubectl --context kind-kx get pvc,pv
  6. kubectl --context kind-kx patch pv $(kubectl --context kind-kx get pvc data -o jsonpath='{.spec.volumeName}') -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
  7. kubectl --context kind-kx delete pod writer
  8. kubectl --context kind-kx delete pvc data
  9. kubectl --context kind-kx get pv

For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. Save the claim and pod from this lesson as data-pvc.yaml and writer.yaml first. kind's default class, standard, uses the local-path provisioner with WaitForFirstConsumer, so the claim binds only after writer is scheduled. The volume ends as Released; delete it with kubectl --context kind-kx delete pv and its name when you are done.

Actual state

Check your understanding

5 checks

Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.

  1. Check 1 of 5

    A claim with no storageClassName is created in a cluster that has no default StorageClass, and it stays Pending. An hour later an administrator marks a class as the default. What happens to the claim?

  2. Check 2 of 5

    Two pods mount the same ReadWriteOnce claim, and the scheduler places both on the same node. What happens?

  3. Check 3 of 5

    A StorageClass for zonal disks uses volumeBindingMode: Immediate. Pods using its claims sometimes stay Pending with volume node affinity conflict. What fixes it?

  4. Check 4 of 5

    A PersistentVolume with persistentVolumeReclaimPolicy: Retain loses its claim. Which statement is true?

  5. Check 5 of 5

Lesson not yet reconciled

Desired: 5 objectives, 0 metReconciled: 5 of 5 objectives met

  • Request storage with a PersistentVolumeClaim and explain how it binds to a PersistentVolume. (not yet met)
  • Choose an access mode, including ReadWriteOncePod, and a reclaim policy. (not yet met)
  • Explain WaitForFirstConsumer and why zonal storage needs it. (not yet met)
  • Grow a bound volume with allowVolumeExpansion, and retry a failed expansion with a smaller request. (not yet met)
  • Diagnose a Pending claim, including in a cluster with no default StorageClass. (not yet met)

Pass every check above to reconcile this lesson.

Every check has passed, so the desired state is met. First-try accuracy: 0 of 5. This lesson's review cards are in your queue.

Practice

Put this lesson to work on the simulated cluster. Everything runs in your browser, with nothing to install.

Changed since the notes

This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.

Show 13 corrections
  1. Stale, true once, no longerPersistent Storage

    The notes saidDefault StorageClass 'marked with an annotation' makes simple PVCs work without choosing storage

    CorrectedKubernetes behaviour is unchanged, but EKS clusters created on 1.30 or later ship the gp2 StorageClass without the storageclass.kubernetes.io/is-default-class annotation (upgraded clusters keep it), and EKS Auto Mode creates no StorageClass at all. A PVC without storageClassName stays Pending until you annotate a class as default, for example a gp3 class with provisioner ebs.csi.aws.com (add-on) or ebs.csi.eks.amazonaws.com (Auto Mode). The EBS CSI chart/add-on exposes defaultStorageClass.enabled (false by default). The AWS 1.30 release note itself rolled off the docs when 1.30 left support; the linked secondary sources record it.

    Sourcedocs.aws.amazon.com/eks/latest/userguide/create-storage-class.html;%20https://dev.classmethod.jp/articles/eks-1-30-storage-class-error/;%20https://communities.sas.com/t5/SAS-Communities-Library/Amazon-EKS-1-30-no-longer-assigns-a-default-storage-class/ta-p/953301

  2. Stale, true once, no longerPersistent Storage

    The notes saidEFS throughput 'bursting (throughput scales with size) and provisioned'

    CorrectedEFS has three throughput modes: Elastic (the recommended default for new file systems; scales automatically, billed per data read/written), Provisioned and Bursting. Switching to Provisioned or changing the amount locks some changes for 24 hours.

    Sourcedocs.aws.amazon.com/efs/latest/ug/performance.html#throughput-modes

  3. Nuance, true with conditionsPersistent Storage

    The notes said'Installing the EBS CSI Driver is required for EBS-backed PVCs… EKS add-on management simplifies installation'

    CorrectedRequired on non-Auto Mode clusters (EKS add-on aws-ebs-csi-driver; driver latest v1.68.1). EKS Auto Mode includes block storage and does not need the add-on; its provisioner is ebs.csi.eks.amazonaws.com and you must create the StorageClass yourself. The add-on supports EKS Pod Identity from v1.26.0-eksbuild.1 as well as IRSA. IAM policy choices: AmazonEBSCSIDriverPolicyV2 (tag-based scoping), AmazonEBSCSIDriverEKSClusterScopedPolicy (cluster-scoped), or AmazonEBSCSIDriverPolicy (no tag restrictions).

    Sourcedocs.aws.amazon.com/eks/latest/userguide/workloads-add-ons-available-eks.html#add-ons-aws-ebs-csi-driver;%20https://docs.aws.amazon.com/eks/latest/userguide/retreive-iam-info.html;%20https://docs.aws.amazon.com/eks/latest/userguide/create-storage-class.html

  4. Stale, true once, no longerPersistent Storage

    The notes saidChanging EBS performance requires new StorageClass/volumes

    CorrectedVolumeAttributesClass is GA in Kubernetes 1.34 (locked on from 1.36). The EBS CSI driver implements ControllerModifyVolume (since driver v1.19.0), so changing a bound PVC's volumeAttributesClassName modifies type, IOPS or throughput of the live volume with no new StorageClass or data copy. EKS Auto Mode docs describe migrating from the deprecated annotation-based volume-modifier-for-k8s to VolumeAttributesClass. EBS Elastic Volumes limits still apply.

    Sourcekubernetes.io/docs/concepts/storage/volume-attributes-classes/;%20https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/modify-volume.md;%20https://docs.aws.amazon.com/eks/latest/userguide/create-storage-class.html

  5. Nuance, true with conditionsPersistent Storage

    The notes saidReadWriteOncePod access mode

    CorrectedState the qualifiers: ReadWriteOncePod is GA since Kubernetes 1.29 (feature gate removed 1.31) and works only with CSI volumes; the scheduler enforces single-pod use. The EBS CSI driver supports it.

    Sourcekubernetes.io/docs/concepts/storage/persistent-volumes#access-modes

  6. Wrong, not truePersistent Storage

    The notes said'For EBS, expansion requires stopping I/O briefly while the filesystem is resized'

    CorrectedEBS Elastic Volumes resize attached volumes online, and Kubernetes performs online filesystem expansion (ext4/xfs) while the pod runs; no I/O stop is needed. Note that the 'one modification per volume per 6 hours' rule in the suspected correction is itself stale: since 2026-01-15 EBS allows up to four modifications per volume in a rolling 24-hour window, and the EBS limitations list no longer carries the 6-hour wait.

    Sourcekubernetes.io/docs/concepts/storage/persistent-volumes#expanding-persistent-volumes-claims;%20https://aws.amazon.com/about-aws/whats-new/2026/01/amazon-ebs-up-to-four-volume-modifications;%20https://docs.aws.amazon.com/ebs/latest/userguide/ebs-modify-volume.html

  7. Nuance, true with conditionsPersistent Storage

    The notes said'EBS volumes can only attach to one instance at a time, so they support only ReadWriteOnce'

    CorrectedA simplification. io1/io2 volumes support Multi-Attach within one AZ, and the EBS CSI driver exposes it as ReadWriteMany for volumeMode: Block only (not filesystem mode); the application must coordinate writes (I/O fencing) to avoid corruption. ReadWriteOncePod is also supported. Shared filesystem RWX belongs to EFS.

    Sourcegithub.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/multi-attach.md;%20https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html

  8. Wrong, not truePersistent Storage

    The notes said'Pods stuck waiting for volume attachment often indicate zone mismatches'

    CorrectedA zone mismatch surfaces at scheduling: the pod stays Pending with a 'volume node affinity conflict' event, and volumeBindingMode: WaitForFirstConsumer avoids it by provisioning in the pod's zone. Pods stuck in ContainerCreating waiting for attachment usually point to a Multi-Attach error (volume still attached to another node), a slow detach, or the node's EBS attachment limit.

    Sourcekubernetes.io/docs/concepts/storage/storage-classes#volume-binding-mode

  9. Nuance, true with conditionsPersistent Storage

    The notes said'Access modes are capabilities, not restrictions'

    CorrectedPartly right: Kubernetes uses access modes to match PVCs to PVs and they do not enforce write protection once mounted. But ReadWriteOncePod is enforced (one pod cluster-wide), and ReadWriteOnce on attachable block storage such as EBS is effectively constrained to one node at attach time (Multi-Attach error).

    Sourcekubernetes.io/docs/concepts/storage/persistent-volumes#access-modes

  10. Stale, true once, no longerPerformance Tuning

    The notes saidgp3: Baseline 3000 IOPS, 125 MB/s. Configurable up to 16,000 IOPS, 1,000 MB/s

    Correctedgp3 baseline is 3,000 IOPS and 125 MiB/s at any size. You can provision up to 80,000 IOPS (500 IOPS per GiB) and 2,000 MiB/s; 16,000 IOPS and 1,000 MiB/s are the limits only for gp3 on Outposts.

    Sourcedocs.aws.amazon.com/ebs/latest/userguide/general-purpose.html

  11. Stale, true once, no longerPerformance Tuning

    The notes saidio2: Up to 64,000 IOPS

    CorrectedAll io2 volumes are io2 Block Express (from Apr 30, 2025), supporting up to 256,000 IOPS and 64 TiB on supported Nitro instances.

    Sourcedocs.aws.amazon.com/ebs/latest/userguide/provisioned-iops.html

  12. Stale, true once, no longerPerformance Tuning

    The notes saidEFS Max I/O performance mode for highly parallel access

    CorrectedMax I/O is a previous-generation performance mode. It isn't supported with Elastic throughput or One Zone file systems, and AWS recommends General Purpose for all file systems.

    Sourcedocs.aws.amazon.com/efs/latest/ug/performance.html

  13. Nuance, true with conditionsPerformance Tuning

    The notes said'Larger volumes have more baseline IOPS' applies to gp2, not gp3

    CorrectedConfirmed. Size-proportional baseline (3 IOPS per GiB) is gp2 behaviour. gp3 has a fixed 3,000 IOPS / 125 MiB/s baseline at any size and provisions extra IOPS and throughput independently of size.

    Sourcedocs.aws.amazon.com/ebs/latest/userguide/general-purpose.html

Every correction across the guide, by note and topic.

Sources

Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .

  1. kubernetes.io/docs/concepts/storage/persistent-volumes
  2. kubernetes.io/docs/concepts/storage/storage-classes
  3. kubernetes.io/docs/concepts/storage/dynamic-provisioning
  4. kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class
  5. kubernetes.io/docs/tasks/administer-cluster/change-pv-reclaim-policy
  6. kubernetes.io/docs/concepts/storage/volumes
  7. kubernetes.io/docs/reference/storage/volume-types
  8. docs.aws.amazon.com/eks/latest/userguide/create-storage-class.html
  9. docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html
  10. docs.aws.amazon.com/eks/latest/userguide/workloads-add-ons-available-eks.html
  11. docs.aws.amazon.com/eks/latest/userguide/efs-csi.html
  12. docs.aws.amazon.com/efs/latest/ug/performance.html
  13. docs.aws.amazon.com/ebs/latest/userguide/ebs-modify-volume.html
  14. docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html
  15. docs.aws.amazon.com/ebs/latest/userguide/provisioned-iops.html
  16. docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html
  17. github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/multi-attach.md

PersistentVolumes, claims and StorageClasses

↓ ↑ step, 1 to 8 scene, Esc leave

kind cluster kxLast command: Nothing run yet