PersistentVolume Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a PersistentVolume resource in Kubernetes.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class PersistentVolume : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type PersistentVolume = class
inherit BaseKubernetesResource
Public NotInheritable Class PersistentVolume
Inherits BaseKubernetesResource
- Inheritance
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
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.
Constructors
PersistentVolume() |
Represents a PersistentVolume resource in Kubernetes. |
Properties
ApiVersion |
Gets or sets the API version for the Kubernetes resource. (Inherited from BaseKubernetesObject) |
Kind |
Gets or sets the kind of the Kubernetes resource. (Inherited from BaseKubernetesObject) |
Metadata |
Gets or sets the metadata for the Kubernetes resource. (Inherited from BaseKubernetesResource) |
Spec |
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. |