Skip to content
Docs Try Aspire

PersistentVolume

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a PersistentVolume resource in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class PersistentVolume
: Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
{
// ...
}
PersistentVolume is a cluster-level storage resource within Kubernetes. It defines a piece of storage that has been provisioned by an administrator or dynamically provisioned using StorageClasses. This resource is independent of individual Pods and remains available beyond the lifecycle of any Pod utilizing it. PersistentVolume is designed to manage storage that is not tied to a single Pod or namespace, enabling data persistence across Pod restarts or failures. It includes properties to define storage class, access modes, and volume attributes.
View all constructors
Specget; set
Gets or sets the specification for the Kubernetes PersistentVolume resource. This property defines the detailed configuration of the PersistentVolume, including storage capacity, access modes, volume mode, node affinity, and reclaim policy. The specification provides granular control over the behavior and capabilities of the PersistentVolume.
View all properties