Key takeaway
- Container Storage Interface (CSI) for Kubernetes: how the Identity, Controller and Node services work, GA status, CSI migration and how to choose a driver.
What is the Container Storage Interface (CSI) in Kubernetes?
The Container Storage Interface is an open specification that defines how a container orchestrator talks to a storage system. According to the Kubernetes documentation, CSI defines a standard interface for container orchestration systems (like Kubernetes) to expose arbitrary storage systems to their container workloads. The aim is simple: a storage vendor builds one plugin, and it works across the orchestrators that support the specification.
For enterprise architects the practical meaning is a clean split of duties. Kubernetes owns scheduling and the volume objects, and the storage vendor owns the driver that creates, attaches and mounts the volume. This guide covers how the specification works, how Kubernetes uses it, and what to check before you standardise on a driver. For the wider platform picture, see our guide to Kubernetes architecture and its components and our persistent storage strategies for Kubernetes.
Why was CSI created, and what did it replace?
Historically, Kubernetes volume plugins were "in-tree": compiled into the core Kubernetes binaries. A storage vendor had to place driver code inside Kubernetes and wait for a Kubernetes release to ship a fix. The Kubernetes documentation notes that both CSI and FlexVolume let volume plugins be developed independently of the Kubernetes code base and installed on clusters as extensions. FlexVolume used an exec-based model with driver binaries placed on every node. CSI replaced it with a gRPC service model.
The specification states its objective as letting storage vendors develop a plugin once and have it work across a number of container orchestration systems. Its stated goals include dynamic provisioning and deprovisioning, attaching and detaching, mounting and unmounting, block and mounted volumes, local storage, snapshots and provisioning from snapshots (source: CSI specification repository). It deliberately does not cover how a plugin is packaged or how its lifecycle is supervised.
What are the main terms in CSI?
| Term | Meaning |
|---|---|
| CO | Container orchestrator, for example Kubernetes. It manages the life cycle of containers and calls the driver. |
| Volume | A unit of storage made available to a workload through the driver. |
| Node | A host where a workload runs. |
| Plugin / driver | A service that exposes gRPC endpoints implementing the CSI services. |
| SP | Storage provider: the vendor of a CSI plugin implementation. |
| gRPC | The open-source remote procedure call framework that CSI uses for its API. |
How does a CSI driver work: Identity, Controller and Node services?
A CSI driver implements gRPC services defined in the specification. The three core services are listed below, with the calls named in the current specification (read from the specification text; later versions may add more).
| Service | Job | Calls in the specification |
|---|---|---|
| Identity | Says who the plugin is, what it can do and whether it is healthy. | GetPluginInfo, GetPluginCapabilities, Probe |
| Controller | Works at storage-system level: create, delete, publish and unpublish volumes, capacity, snapshots, expansion. | CreateVolume, DeleteVolume, ControllerPublishVolume, ControllerUnpublishVolume, ValidateVolumeCapabilities, ListVolumes, GetCapacity, ControllerGetCapabilities, CreateSnapshot, DeleteSnapshot, ListSnapshots, GetSnapshot, ControllerExpandVolume, ControllerGetVolume |
| Node | Works on the host where the workload runs: stage, publish and unpublish the volume, report stats. | NodeStageVolume, NodeUnstageVolume, NodePublishVolume, NodeUnpublishVolume, NodeGetVolumeStats, NodeExpandVolume, NodeGetCapabilities, NodeGetInfo |
The specification also defines further health, volume modification and group snapshot calls. Which of them a driver supports is advertised through its capabilities calls, so the orchestrator only uses what the driver declares.
What is the volume life cycle?
In outline, the orchestrator asks the Controller service to create the volume (CreateVolume), then to make it available on the chosen node (ControllerPublishVolume). On that node it stages the volume (NodeStageVolume) and then publishes it to the workload's target path (NodePublishVolume). Unpublishing, unstaging and deletion run in the reverse order.
How does Kubernetes use CSI today?
Once a CSI driver is deployed, users can use the csi volume type through a PersistentVolumeClaim, a generic ephemeral volume or, if the driver supports it, a CSI ephemeral volume (Kubernetes volumes documentation). Most teams never write csi volumes by hand. They define a StorageClass whose provisioner names the driver, and dynamic provisioning does the rest. Two StorageClass fields matter for design: volumeBindingMode (WaitForFirstConsumer delays provisioning until a Pod is scheduled, which helps with topology-constrained storage) and allowVolumeExpansion, which allows growing, never shrinking, a volume. Without a reclaimPolicy, dynamically created volumes default to Delete (StorageClass documentation).
Drivers ship with helper sidecar containers maintained by the Kubernetes CSI project, such as external-provisioner, external-attacher, external-resizer, external-snapshotter, livenessprobe and node-driver-registrar (Kubernetes CSI developer documentation). Snapshots use the VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass objects, which are custom resource definitions, and snapshot support is only available for CSI drivers (volume snapshots documentation). The CRDs and snapshot controller are the responsibility of the Kubernetes distribution.
How did CSI reach general availability in Kubernetes?
| Kubernetes version | CSI spec version | Status |
|---|---|---|
| v1.9 | v0.1.0 | Alpha |
| v1.10 | v0.2.0 | Beta |
| v1.11 | v0.3.0 | Beta |
| v1.13 | v0.3.0 and v1.0.0 | GA |
Source: Kubernetes CSI documentation. The Kubernetes project announced CSI general availability on 15 January 2019 (Kubernetes blog). Support for CSI spec versions 0.2 and 0.3 was deprecated in Kubernetes v1.13, so a driver written for those early versions needs checking.
What has changed: CSI migration, FlexVolume and in-tree plugins?
| Topic | Current status (Kubernetes documentation) | What to do |
|---|---|---|
| CSI migration | Stable since v1.25. Operations on in-tree plugins are redirected to the matching CSI driver, and existing StorageClasses, PVs and PVCs need no change. | Install and configure the CSI driver yourself before upgrading. |
| CSI ephemeral volumes | Stable since v1.25. Configured in the Pod spec and not kept across Pod restarts. | Use only where the driver supports it. |
| CSI raw block volumes | Stable since v1.18. | Check driver support for block mode. |
| FlexVolume | Deprecated since v1.23. CSI is the recommended way to integrate external storage. | Move workloads to the equivalent CSI driver. |
| In-tree gcePersistentDisk | Deprecated in v1.17 and removed in v1.28. | Use the Google Cloud CSI driver (pd.csi.storage.gke.io). |
Source: Kubernetes volumes documentation, read November 2026. Version numbers change, so confirm them on the page for the Kubernetes release you run.
How should an enterprise choose and govern a CSI driver?
| Question | Why it matters |
|---|---|
| Which capabilities does the driver declare (snapshots, expansion, block mode, topology)? | The Kubernetes driver list states it has not been validated by SIG-Storage, so confirm capabilities with the driver maintainer. |
| Which Kubernetes versions does the vendor support? | The documentation warns that CSI drivers may not be compatible across all Kubernetes releases. |
| Who installs the driver, sidecars and snapshot CRDs? | Kubernetes does not install them for you. Platform teams own this in upgrade plans. |
| How are snapshots, retention and reclaim policy set? | Default reclaim policy is Delete, so decide deliberately for data you cannot recreate. |
| Where does data live, and who can reach it? | Storage classes are a policy surface. Combine them with the controls in our cloud governance guide. |
For stateful platforms built on CSI volumes, our guide to Kubernetes operators shows how operators automate database and storage life cycles. Teams running agent workloads across on-premises, cloud and hybrid environments can look at NexaStack, which describes itself as an agentic operating platform for physical AI that runs across on-premises, cloud and hybrid environments. ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents, which is useful when agents request or modify storage through automation.
When is CSI not the answer?
CSI standardises the control plane for provisioning and mounting. It does not choose the storage technology, guarantee performance or make an application safe to run with multiple writers. Object storage is accessed through an API and not mounted as a volume, so it sits outside the volume model. A poorly chosen backend remains poorly chosen behind a CSI driver. Run a representative workload test, including a failover and a restore from snapshot, before you commit.
What is a sensible adoption sequence?
- Inventory current volumes, in-tree plugins and any FlexVolume drivers.
- Pick drivers per storage backend and record their declared capabilities.
- Install drivers, sidecars and snapshot CRDs on a test cluster of the target Kubernetes version.
- Define StorageClasses with explicit binding mode, expansion and reclaim policy.
- Test provisioning, expansion, snapshot restore and node failure.
- Roll out by workload tier and keep upgrade notes for each driver.
To map one storage or data-placement decision your agents and platform teams should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
What is the Container Storage Interface (CSI)?
CSI is a standard interface that lets container orchestration systems such as Kubernetes expose arbitrary storage systems to container workloads. A storage vendor writes one driver and it can work across orchestrators that support the specification.
Which Kubernetes version made CSI generally available?
According to the Kubernetes CSI documentation, CSI was alpha in Kubernetes v1.9, beta in v1.10 and generally available in v1.13.
Is FlexVolume still the way to add storage to Kubernetes?
No. According to the Kubernetes documentation, FlexVolume has been deprecated since v1.23, and an out-of-tree CSI driver is the recommended way to integrate external storage.
Does Kubernetes install the CSI driver for me?
No. The Kubernetes documentation states that when you rely on CSI migration, you or another cluster administrator must install and configure the appropriate CSI driver, because the core of Kubernetes does not install it.
Do all CSI drivers support snapshots and resizing?
No. Snapshot support is only available for CSI drivers, and a driver may or may not implement it. Check the driver's own documentation before you design around snapshots or expansion.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE