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
| Field | Description | Example |
|---|---|---|
| Name | Storage Class name | fast-ssd |
| Provisioner | Storage provisioner | kubernetes.io/no-provisioner |
| Reclaim Policy | PV behavior after PVC deletion | Delete |
| Volume Binding Mode | When to bind PVs | WaitForFirstConsumer |
| Allow Volume Expansion | Allow volume resizing | true |
Volume Binding Mode Guide
| Mode | Description |
|---|---|
Immediate | Provision PV immediately when PVC is created |
WaitForFirstConsumer | Provision 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.
| Key | Value |
|---|---|
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.