Skip to content

Configure a Storage Class ​

Set up a Storage Class to automatically provision PVs when PVCs are created.

Prerequisites

  • Cluster administrator permissions are required.
  • The storage provisioner must be installed in the cluster.

Step 1. Open the Create Storage Class form ​

Select Storage → Storage classes from the left sidebar. Click the Create storage class button in the top right.


Step 2. Enter Storage Class settings ​

FieldDescriptionExample
NameStorage Class namefast-ssd
ProvisionerStorage provisionerkubernetes.io/no-provisioner
Reclaim PolicyPV behavior after PVC deletionDelete
Volume Binding ModeWhen to bind PVsWaitForFirstConsumer
Allow Volume ExpansionAllow volume resizingtrue

Volume Binding Mode Guide ​

ModeDescription
ImmediateProvision PV immediately when PVC is created
WaitForFirstConsumerProvision PV when a Pod actually uses the PVC (optimizes node topology)

Step 3. Set as default Storage Class (optional) ​

To use this Storage Class as the cluster default, add the following Annotation.

KeyValue
storageclass.kubernetes.io/is-default-class"true"

WARNING

Only one default Storage Class should be set per cluster. Multiple defaults can cause unexpected PVC binding behavior.


Step 4. Confirm creation ​

Click Create. In the Storage classes list, the default class will show (default) next to its name.


Next Steps ​

The New Standard for AI Infrastructure