Volume Attributes Classes
Status
| Status | Min K8s Version | Max K8s Version | external-provisioner | external-resizer |
|---|---|---|---|---|
| Alpha | 1.29 | - | v4.0.0 | v1.10.0 |
| Beta | 1.31 | - | v5.1.0 | v1.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_VOLUMEcapability. - The Kubernetes administrator must create the
VolumeAttributesClasswith the relevantparametersfor thedriverName - The user can then patch the
PersistentVolumeClaimunderspec.volumeAttributesClassNameto select or update the settings he needs for the volume.
For more information about how to use the feature, visit the Kubernetes blog page.