XenonStack

Kubernetes

XenonStack Blog Container Storage Interface (CSI) for Kubernetes

and | Published | Updated

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?

TermMeaning
COContainer orchestrator, for example Kubernetes. It manages the life cycle of containers and calls the driver.
VolumeA unit of storage made available to a workload through the driver.
NodeA host where a workload runs.
Plugin / driverA service that exposes gRPC endpoints implementing the CSI services.
SPStorage provider: the vendor of a CSI plugin implementation.
gRPCThe 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).

Two columns mapping orchestrator steps to CSI calls: check the plugin (Identity), create the volume and publish it to a node (Controller), stage and publish on the node (Node).
ServiceJobCalls in the specification
IdentitySays who the plugin is, what it can do and whether it is healthy.GetPluginInfo, GetPluginCapabilities, Probe
ControllerWorks 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
NodeWorks 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 versionCSI spec versionStatus
v1.9v0.1.0Alpha
v1.10v0.2.0Beta
v1.11v0.3.0Beta
v1.13v0.3.0 and v1.0.0GA

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?

TopicCurrent status (Kubernetes documentation)What to do
CSI migrationStable 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 volumesStable since v1.25. Configured in the Pod spec and not kept across Pod restarts.Use only where the driver supports it.
CSI raw block volumesStable since v1.18.Check driver support for block mode.
FlexVolumeDeprecated since v1.23. CSI is the recommended way to integrate external storage.Move workloads to the equivalent CSI driver.
In-tree gcePersistentDiskDeprecated 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?

QuestionWhy 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?

  1. Inventory current volumes, in-tree plugins and any FlexVolume drivers.
  2. Pick drivers per storage backend and record their declared capabilities.
  3. Install drivers, sidecars and snapshot CRDs on a test cluster of the target Kubernetes version.
  4. Define StorageClasses with explicit binding mode, expansion and reclaim policy.
  5. Test provisioning, expansion, snapshot restore and node failure.
  6. 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.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in Solving your Challenges with XenonStack Team
Get Started

Get Started with your requirements and primary focus, that will help us to make your solution

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Proceed Next