StorageClasses
Every Cluster with persistent storage has two StorageClasses for block volumes. Both use theblock.csi.latitude.sh provisioner.
Both classes create volumes on first use (
volumeBindingMode: WaitForFirstConsumer), allow expansion, and format volumes as ext4.
Don’t edit or delete the built-in classes. For other settings, create your own StorageClass. See Use xfs.
Create a volume
A claim that names no StorageClass useslatitude-block:
Pending until a Pod uses it. Then the volume is created, attached to the Pod’s Node and mounted:
volumeClaimTemplates so each replica gets its own volume:
storageClassName: latitude-block-retain in the claim.
Size and expansion
Volumes are sized in whole GiB, rounded up, with a minimum of 1 GiB. To grow a volume, increase the claim’s request:Access modes
To share a volume across Nodes, use a file volume.
Use xfs
To format volumes as xfs, create a StorageClass that sets the filesystem type:storageClassName: latitude-block-xfs in your claims.
Lifecycle
Volumes appear in the dashboard under Storage > Block storage, named
lks-<cluster-id>-pvc-<uuid>. A kept volume stays in your project until you delete it there.
Limits
- Volumes count toward your team’s Latitude Block Storage volume limit. To raise it, contact support.
- A Node can have up to 64 volumes attached.
- Volumes are created in the Cluster’s location only.
Pricing
Volumes are billed as Latitude Block Storage, on provisioned capacity while the volume exists. That includes volumes kept by
latitude-block-retain after their claim or Cluster is deleted. Delete them when you no longer need them.Troubleshooting
The Cluster records what’s happening as events. Read them withkubectl describe pvc <name>, kubectl describe pod <name>, or kubectl get events.