Bitzu

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

Single choice

What is the main purpose of CSI?

  1. A replacement for etcd storage
  2. A standard interface for storage vendors to integrate with orchestrators
  3. A new filesystem format for container images
  4. 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.

Select all that apply

Which statements about volume snapshots in Kubernetes are true?

  1. They work with every in-tree volume type including hostPath
  2. They are part of the core v1 API group
  3. They are available only for CSI drivers
  4. VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass are CRDs
  5. 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

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.

Download on the App StoreGet it on Google Play

More KCNA topics in this module