openskills.info
Kubernetes Storage logoCourse Preview

Kubernetes Storage

Kubernetes storage provides persistent data to pods through volumes, persistent volume claims, and storage classes backed by CSI drivers. It manages the lifecycle of storage resources so stateful applications retain their data across restarts and rescheduling.

itCloud native tools and technologies

Recommended first:kubernetes-fundamentals

Don't Panic — Kubernetes Storage

Kubernetes storage is the arrangement that lets a Pod keep files when its containers restart, without asking the application to know which disk, share, or driver lives beneath it. Containers are excellent at forgetting things. Storage gives them a more useful hobby.

The problem has two parts. A container's writable layer vanishes with the container, and two containers in one Pod do not automatically share their files. A volume is a directory that Kubernetes makes available to the Pod's containers, each at the path it needs. For scratch space, configuration files, or a handoff between two containers, an ephemeral volume is enough. For a database, queue, or anything whose loss would cause a very long afternoon, the volume must outlive the Pod.

Durable storage hangs from three pieces. A PersistentVolumeClaim, or PVC, says what the workload needs: capacity, access mode, and perhaps a class. A PersistentVolume, or PV, represents the concrete storage that can meet it. A StorageClass is the recipe that tells Kubernetes which provisioner and parameters to use when a claim needs a new volume. The claim is the portable request; the volume is the infrastructure answer. Kubernetes performs the introduction and then gets out of the way, which is polite but does leave the two to manage their relationship.

The surprise is that the convenient words carry sharp edges. ReadWriteOnce means one node may write, not one Pod. WaitForFirstConsumer delays provisioning until Kubernetes knows where the Pod can run, avoiding a volume created in the wrong zone. And Delete is not a housekeeping label; it can remove the underlying storage after its claim goes away. The platform can orchestrate the lifecycle, but it cannot make the backend's durability or recovery behavior less real.

Start with the Intro when the claim, class, and volume arrangement still feels like three identical boxes with excellent branding. Use the Slides for the lifecycle and the access-mode traps. Keep the Cheatsheet nearby when a PVC is Pending, a volume needs expansion, or a StatefulSet leaves data behind. Then follow the Reference tab into the Kubernetes documentation for the exact driver and backend behavior your cluster provides.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources