Storage classes
Kestrel has two StorageClasses. Both provision OpenStack Cinder block volumes (cinder.csi.openstack.org) and differ only in reclaim policy.
csi-cinder-sc-delete | csi-cinder-sc-retain | |
|---|---|---|
| Default class | Yes | No |
| Reclaim policy | Delete | Retain |
| Access mode | ReadWriteOnce | ReadWriteOnce |
| Volume binding | Immediate | Immediate |
| Expansion | Yes | Yes |
| Backups, snapshots | None | None |
A PVC that omits storageClassName gets csi-cinder-sc-delete. A PVC that names any other class is accepted but stays Pending with a ProvisioningFailed event: storageclass.storage.k8s.io "<name>" not found.
Use csi-cinder-sc-retain for data you can’t afford to lose to a mistaken kubectl delete, and the default for everything else.
ReadWriteOnce: one node at a time
Section titled “ReadWriteOnce: one node at a time”ReadWriteOnce limits a volume to one node, not one Pod. While a Pod on one node has the volume attached, a Pod scheduled to a different node can’t start: it stays in ContainerCreating with a Multi-Attach error event.
A default RollingUpdate starts the new Pod before stopping the old one, so it stalls whenever the new Pod lands on another node. Give a Deployment that mounts an RWO claim the Recreate strategy, or use a StatefulSet:
spec: strategy: type: RecreateExpanding a volume
Section titled “Expanding a volume”Raise spec.resources.requests.storage on the PVC and re-apply it (or commit the change and let ArgoCD sync it). The Cinder volume grows in place. If kubectl describe pvc then shows the condition FileSystemResizePending, restart the Pod that mounts the claim to finish the filesystem resize.
Shrinking is not supported. The larger request counts against your tenant’s storage quota; see Quotas.
Retained volumes
Section titled “Retained volumes”Deleting a csi-cinder-sc-retain claim leaves its PersistentVolume Released, with the data intact. A Released volume never binds to a new claim on its own, and tenants can’t list or delete PersistentVolumes, so recovering the data or removing the volume takes an RCS ticket. Give the namespace and the claim name.
Deleting and re-creating a retain claim does not bring the data back. The new claim gets a new, empty volume, and the old one stays behind as another Released volume.
What neither class provides
Section titled “What neither class provides”- Backups or snapshots. There is no VolumeSnapshot API. Back up from your workload, for example with a CronJob that copies data off the cluster.
- Shared (
ReadWriteMany) access. There is no RWX StorageClass. Mount a CephFS share from your Arbutus project, or ask RCS for a static volume; see Shared (RWX) volumes. - Per-tenant encryption. There is no per-volume or per-tenant key. Any encryption at rest is cluster-wide, in the OpenStack storage layer.
To claim and mount a volume, see Persistent volumes in practice.