KCNA ยท Storage and troubleshooting
Container Storage Interface (CSI)
Container Storage Interface purpose, out-of-tree drivers, volume snapshots and expansion concepts.
Key points
- CSI is a standard interface between a container orchestrator and a storage system.
- Storage vendors ship an out-of-tree CSI driver, usually run as Pods in the cluster, so new backends can be added without changing Kubernetes core code.
- CSI also enables features such as volume snapshots and expansion where the driver supports them.
Source: https://kubernetes.io/docs/concepts/storage/volume-snapshots/
Practice questions
What is the main purpose of CSI?
- A replacement for etcd storage
- A standard interface for storage vendors to integrate with orchestrators
- A new filesystem format for container images
- A scheduler plugin that places Pods near disks
Show answer
Answer: B. A standard interface for storage vendors to integrate with orchestrators
CSI gives storage vendors one standard way to plug into Kubernetes (and other orchestrators) without modifying the core code. It is not a scheduler feature or a filesystem.
Which statements about volume snapshots in Kubernetes are true?
- They work with every in-tree volume type including hostPath
- They are part of the core v1 API group
- They are available only for CSI drivers
- VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass are CRDs
- VolumeSnapshotClass holds provider-specific snapshot parameters
Show answer
Answer: C. They are available only for CSI drivers, D. VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass are CRDs, E. VolumeSnapshotClass holds provider-specific snapshot parameters
Snapshots use the VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass objects, which are CRDs, and are supported only for CSI drivers. They are not part of the core API and not available for every volume type.
True or false: volume snapshots work with any volume type, including emptyDir and hostPath.
Show answer
Answer: False
False. Kubernetes volume snapshots are supported only for CSI drivers that implement snapshot functionality.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
