Skip to main content
⎈K8sCalc
storage

What is CSI (Container Storage Interface)?

A standard interface for exposing storage systems to Kubernetes. CSI drivers allow storage vendors (Longhorn, Ceph, etc.) to provide persistent volumes to pods.

CSI (Container Storage Interface) explained

How it works. CSI is the standard API between Kubernetes and storage systems. A CSI driver runs as a controller (creating, deleting, snapshotting volumes) plus a node plugin on every node (attaching and mounting them). Kubernetes calls the driver when a PersistentVolumeClaim needs a volume.

In practice. Cloud providers ship CSI drivers (e.g. the Hetzner CSI driver for Hetzner volumes); self-hosted storage uses Longhorn, Rook/Ceph or OpenEBS, all CSI drivers. Volume snapshots also go through CSI (VolumeSnapshot objects).

Common pitfalls. Using a StorageClass with ReadWriteMany on a driver that only supports ReadWriteOnce; forgetting allowVolumeExpansion: true and then being unable to grow volumes; reclaim policy Delete removing data you meant to keep.

Related tool

K8s Cluster Cost

Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.

Related Calculators

Related Generators

Related Comparisons

Related Terms