Volume Attributes Classes

Status

StatusMin K8s VersionMax K8s Versionexternal-provisionerexternal-resizer
Alpha1.29-v4.0.0v1.10.0
Beta1.31-v5.1.0v1.12.0

Overview

A VolumeAttributesClass is a cluster-scoped resource that can be used to control and change the settings of a PersistentVolume. Its primary use is to adjust the class of service for a volume (e.g., bronze, silver, gold) to meet different performance, quality-of-service, or resilience requirements.

See the Kubernetes Enhancement Proposal for more details on the background, design and discussions.

Usage

This feature is enabled by default in the external-provisioner.

To take advantage of VolumeAttibutesClass feature:

  • The CSI driver must implement the MODIFY_VOLUME capability.
  • The Kubernetes administrator must create the VolumeAttributesClass with the relevant parameters for the driverName
  • The user can then patch the PersistentVolumeClaim under spec.volumeAttributesClassName to select or update the settings he needs for the volume.

For more information about how to use the feature, visit the Kubernetes blog page.