Skip to content
AnchrasDocumentation
Browse documentation

Data and storage / User guide

Cluster volumes

Create persistent volumes for cluster workloads and inspect binding and storage status.

On this page

Before you begin

Use a ready cluster with a configured CSI provisioner and appropriate StorageClass. Check capacity, access mode, and topology requirements of the application.

Get started

  1. Choose the target cluster and namespace.
  2. Select storage capacity, access mode, and an available storage class.
  3. Create the volume and wait for the PVC to bind.
  4. Mount it into the intended workload and verify data can be written and read.

Operate the service

Monitor binding state and actual storage usage. Verify retention and reclaim policy before deleting a workload or volume. Resizing and topology behavior depend on the CSI driver and storage class.

Availability and limits

A PVC record is not proof of provisioned durable storage. The provider must bind it and a workload must be able to mount it. Cluster volumes differ from provider-native block volumes attached directly to cloud instances.

A node volume (anchras volumes create --node <node>) is a different thing: a directory on a disk you handed to Anchras with anchras disk adopt, which containers on that machine mount, with no cluster involved. Node volumes are in preview; see Get started.

Troubleshooting

For Pending PVCs, inspect StorageClass existence, provisioner health, topology constraints, and requested capacity. For mount errors, inspect node events and access-mode compatibility.

Next steps

Use the CLI guide to automate repeatable work, or the API guide to integrate Anchras with your own tools.

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
volumes listList persistent volume claims. Requires --cluster; optional --namespace, --status, pagination. Cluster volumes and their snapshots live in the cluster's project (project_id in -o json), so these commands take no --project.
volumes get <claim_id>Show one claim; also accepts namespace/name when listing within a cluster.
volumes classesList storage classes and capabilities for a cluster.
volumes pvsList persistent volumes.
volumes snapshotsList volume snapshots (volumes snapshots list is the same command).
volumes snapshots delete <snapshot_id> --cluster <id>Delete a volume snapshot: the snapshot turns deleting, the volume reconciler deletes its Kubernetes VolumeSnapshot through the cluster's agent, then the row. Asking again while it is deleting succeeds. Refused with failed_precondition while a volume is still being cloned or restored from it, and for a managed database's snapshots.
volumes syncTrigger Kubernetes/CSI inventory reconciliation for a cluster via the agent reflector. Admin/owner.
volumes createCreate a PVC. Requires --cluster, --name, --size-gib; supports --class, --access-mode.
volumes expand / snapshot / clone / restore / detach / deleteRecord requested volume lifecycle state in VolumeService; the cluster reflector reconciles observed Kubernetes/CSI status back into Anchras.
volumes validateValidate storage requirements with repeatable --volume name:size_gib[:class].
volumes list --node <node>List node volumes (ADR-077, NodeStorageService): directories on a node's disks that containers on that node mount, with no cluster. --all includes deleted volumes. A volume on an offline node says so: its data is on that node only. With --node, every volumes verb below acts on node volumes; --cluster keeps the Kubernetes broker above. Supports structured output.
volumes create --node <node> --name <name> --size <10GiB>Create a node volume on one of the node's adopted disks (--disk, default: the only one or the one with the most room). The size is reserved on the disk (volumes take at most 90% of it) and enforced when the disk's filesystem has project quotas (XFS prjquota, ext4 prjquota); otherwise it is a reservation only, and the output says so. --uid/--gid set the directory's owner for images that run as a non-root user. Waits for the node's answer unless --no-wait. Mount it with container create --volume name=<m>,type=node_volume,source=<volume name or id>,path=<dir>; the container then runs on the volume's node. A container placed on another node (--placement host --placement-target-id <node>) mounts it over the tailnet with NFSv4.2 (ADR-077 §7): the volume's node exports it through its own tailnet Service, anchras-vol-<id>.<tailnet>, only while such a container exists, and the container's node forwards a loopback port to it. Both nodes need the NFS packages (nfs-kernel-server on the volume's node and nfs-common on the other on Debian and Ubuntu, nfs-utils on Fedora and RHEL; disk inventory says what is missing), or placement is refused naming them. Use it for shared config, media and datasets, not a database's data directory.
volumes get <volume> --node <node>One node volume: its disk, size, size limit, owner, directory on the node, the containers mounting it, and its sharing (the private name and the nodes mounting it over the tailnet). <volume> is an id, or a name on --node.
volumes delete <volume> --node <node>Delete a node volume and everything in it, after you type its name (or --yes). Refused while a container mounts it. A volume on an offline node is refused unless --forget, which removes the record and leaves the data on the disk.

API reference

Browse procedures, request and response types, and download the complete OpenAPI contract.