Skip to main content
This page covers the StorageClasses LKS provides, how to create, grow and delete volumes, and how to read the events the Cluster records. For the model behind it, see Persistent storage. For volumes shared by Pods on several Nodes, see File volumes.

StorageClasses

Every Cluster with persistent storage has two StorageClasses for block volumes. Both use the block.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 uses latitude-block:
The claim stays Pending until a Pod uses it. Then the volume is created, attached to the Pod’s Node and mounted:
For a StatefulSet, use volumeClaimTemplates so each replica gets its own volume:
To keep a volume after its claim is deleted, set 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:
The volume and its filesystem grow while the Pod keeps running. Volumes can’t shrink.

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:
Then set 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.
Deleting a claim that uses latitude-block, or deleting the Cluster, permanently deletes the data on those volumes. There are no snapshots yet, so back up anything you need first.

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 with kubectl describe pvc <name>, kubectl describe pod <name>, or kubectl get events.