DemandFlow Support Centre

K8SPV: K8s Persistent Volume

ReferenceEntity Reference16/04/2026Updated 16/04/2026
A cluster-scoped Kubernetes Persistent Volume providing durable storage backed by NFS, cloud disks, CSI drivers, or local storage.

K8SPV: K8s Persistent Volume

A cluster-scoped Kubernetes Persistent Volume providing durable storage backed by NFS, cloud disks, CSI drivers, or local storage.

Default definition. This article describes the default K8SPV definition shipped with DemandFlow. Administrators can add, remove, rename, or re-type fields, change which ones are required, and alter the layout from the Definitions screen in Settings. Your tenant's current schema may differ from what is shown here. To read the current definition at any time, GET the DEFINITION object whose id matches K8SPV.

Entity properties

PropertyValue
Entity codeK8SPV
Display nameK8s Persistent Volume
PluralK8s Persistent Volumes
Level409

Use cases

K8SPV represents the cluster-scoped storage resource in Kubernetes, complementing K8SSTORAGE which models namespace-scoped PersistentVolumeClaims. The sourceType field drives visibility conditions to show only the relevant backend configuration (NFS, AWS EBS, HostPath, CSI, etc.). Binding information tracks the PVC relationship.

Fields

Volume Information

FieldTypeRequiredNotes
nametextYesName.
clusterreference → K8SCLUSTERYesCluster.
statusenumYesValid ids: 1 (Available), 2 (Bound), 3 (Released), 4 (Failed).
capacitynumberCapacity in GB
storageClasstextStorage Class.

Access & Configuration

FieldTypeRequiredNotes
accessModesarray of enumsValid ids: 1 (ReadWriteOnce), 2 (ReadOnlyMany), 3 (ReadWriteMany), 4 (ReadWriteOncePod).
volumeModeenumValid ids: 1 (Filesystem), 2 (Block).
reclaimPolicyenumYesValid ids: 1 (Retain), 2 (Delete), 3 (Recycle).
labelstext (multi-line)Labels.
annotationstext (multi-line)Annotations.

Source Type

FieldTypeRequiredNotes
sourceTypeenumYesValid ids: 1 (NFS), 2 (AWS EBS), 3 (Azure Disk), 4 (GCE PD), 5 (HostPath), 6 (Local), 7 (CSI), 8 (iSCSI).

NFS

FieldTypeRequiredNotes
nfsServertextNFS Server.
nfsPathtextNFS Path.
nfsReadOnlybooleanRead Only.

AWS EBS

FieldTypeRequiredNotes
ebsVolumeIdtextVolume ID.
ebsFsTypetextFilesystem Type.
ebsPartitionnumberPartition.

HostPath

FieldTypeRequiredNotes
hostPathtextHost Path.
hostPathTypeenumValid ids: 1 (), 2 (DirectoryOrCreate), 3 (Directory), 4 (FileOrCreate), 5 (File), 6 (Socket), 7 (CharDevice), 8 (BlockDevice).

CSI

FieldTypeRequiredNotes
csiDrivertextCSI Driver.
csiVolumeHandletextVolume Handle.
csiFsTypetextFilesystem Type.
csiReadOnlybooleanRead Only.
csiVolumeAttributestext (multi-line)JSON key-value pairs

Bound Claim

FieldTypeRequiredNotes
boundPVCreference → K8SSTORAGEBound PVC.
claimNamespacetextClaim Namespace.
claimNametextClaim Name.
boundTimedatetimeBound Time.

Node Affinity

FieldTypeRequiredNotes
nodeSelectortext (multi-line)JSON node selector terms
topologyConstraintstext (multi-line)JSON topology constraints

Usage

FieldTypeRequiredNotes
usagePercentnumberUsage %.
usedCapacitynumberUsed (GB).
availableCapacitynumberAvailable (GB).

Performance

FieldTypeRequiredNotes
iopsnumberIOPS.
throughputnumberThroughput (MB/s).
readLatencynumberRead Latency (ms).
writeLatencynumberWrite Latency (ms).

Relationships

  • Lookups: cluster points at a K8SCLUSTER record; boundPVC points at a K8SSTORAGE record.

Creating a K8s Persistent Volume via the API

POST /v1/objects
Authorization: Bearer <your-pat>
Content-Type: application/json

{
  "entity":   "K8SPV",
  "level":    409,
  "comboKey": "SUB:<your-sub-id>|ENT:",
  "name": "Example",
  "cluster": "",
  "status": "1",
  "reclaimPolicy": "1"
}

Listing K8s Persistent Volumes

# All records in your tenant
GET /v1/entities/K8SPV/SUB:<your-sub-id>

See also

k8spvk8spersistentvolumevolumes

Was this article helpful?

← Back to Knowledge Base