Platform Storage
Persistent storage on the ayedo SDP: StorageClasses (Hetzner CSI, Longhorn, Rook/Ceph), volume expansion, IOPS, snapshots vs. Velero, and quotas.
Platform Storage
This page explains how to use persistent block and file storage on the ayedo Software Delivery Platform (SDP): available StorageClasses, dynamic provisioning, volume expansion, performance considerations, and the distinction between snapshots and backups.
StorageClasses Overview
Which StorageClasses are available in your cluster depends on the underlying infrastructure and the deployed storage backends:
| StorageClass (Example) | Backend | Access Mode | Typical Use Case |
|---|---|---|---|
hcloud-volumes |
Hetzner Cloud CSI | ReadWriteOnce (RWO) |
Cloud VMs with an attached block volume per pod/node |
longhorn |
Longhorn CSI | ReadWriteOnce (RWO), optionally ReadWriteMany (RWX) |
Hyperconverged, replicated block storage directly on cluster nodes |
ceph-rbd |
Rook/Ceph RBD | ReadWriteOnce (RWO) |
Highly available, distributed block storage for databases and StatefulSets |
cephfs |
Rook/CephFS | ReadWriteMany (RWX) |
Shared filesystem accessed by multiple pods simultaneously |
Check the available classes and their properties directly via kubectl:
kubectl get storageclass
kubectl describe storageclass <storageclass-name>
Dynamic Provisioning
Request persistent storage declaratively via a PersistentVolumeClaim (PVC). The corresponding CSI driver automatically creates the volume and binds it to your pod:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: acme-app-data
namespace: acme-production
spec:
accessModes:
- ReadWriteOnce
storageClassName: ceph-rbd
resources:
requests:
storage: 20Gi
Expanding Volumes (Volume Expand)
Most StorageClasses on the SDP support online expansion (allowVolumeExpansion: true). Shrinking volumes, on the other hand, is not supported in Kubernetes.
Expansion Workflow
- Increase
spec.resources.requests.storagein your PVC manifest (or via Helm/GitOps). - The CSI driver expands the underlying block volume.
- The filesystem is resized automatically or — depending on the driver — after a controlled pod restart.
| Backend | Typical Behavior During Expansion |
|---|---|
Hetzner CSI (hcloud-volumes) |
Brief I/O pause or single pod restart may be required until the filesystem recognizes the new size |
| Longhorn | Online expansion supported; brief I/O delay possible |
| Rook/Ceph RBD | Online expansion generally works without a restart (depending on the filesystem) |
Ideally schedule production volume expansions outside peak traffic hours, and afterward check kubectl get pvc -n acme-production as well as available disk space inside the pod.
IOPS and Performance Considerations
- Cloud Block Volumes (e.g., Hetzner CSI): Throughput and IOPS often scale with the provisioned volume size and provider tier.
- Distributed Storage (Longhorn, Rook/Ceph): Latency and throughput depend on replica count, local NVMe/SSD drives on the nodes, and inter-node network bandwidth.
- Databases: For PostgreSQL (CloudNativePG) or MongoDB, dedicated block StorageClasses (
RWO) are recommended overRWXfilesystems. Always evaluate I/O performance using real measurements in Grafana rather than theoretical benchmarks.
Snapshots vs. Backups
A local volume snapshot is not a complete backup, as it often depends on the same storage layer:
| Mechanism | Purpose & Classification |
|---|---|
CSI VolumeSnapshot |
Not universally available across all storage backends (e.g., Hetzner CSI); best suited for short-term local restore points |
| Longhorn Snapshots | Useful for quick rollbacks before changes, but does not replace an external backup |
| Velero (Cluster & PVC Backup) | SDP standard for consistent, off-cluster backups of Kubernetes resources and volumes to S3 object storage |
| Database-Native Backups | For PostgreSQL (CloudNativePG Barman) and MongoDB, always prefer database-native backup mechanisms |
For data recovery instructions, see Backup & Restore, and for MongoDB see Managed MongoDB. Binding details on backup frequencies and retention periods in managed operations are defined in the Service Annex to the Terms and Conditions.
Quotas and Limits
At the namespace level, ResourceQuotas can limit the maximum requestable storage capacity and the number of PVCs:
kubectl describe resourcequota -n acme-production
When troubleshooting a Pending PVC, always check active namespace quotas alongside the StorageClass (see Workload Troubleshooting).
Shared Responsibility
| Platform Operations (Managed Scope) | Development Team / Customer |
|---|---|
| Operating CSI drivers and storage backends | Choosing the appropriate StorageClass (RWO vs. RWX) and size |
| Providing default StorageClasses and managed backups within the agreed scope | Planning volume expansions and monitoring PVC usage in Grafana |
| Capacity monitoring of storage nodes | Application-specific consistency or partial backups when needed |