Share via


PersistentVolumeClaimTemplateV1 Class

Definition

Represents a template for creating a PersistentVolumeClaim (PVC) in a Kubernetes environment.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class PersistentVolumeClaimTemplateV1
[<YamlDotNet.Serialization.YamlSerializable>]
type PersistentVolumeClaimTemplateV1 = class
Public NotInheritable Class PersistentVolumeClaimTemplateV1
Inheritance
PersistentVolumeClaimTemplateV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

This class allows defining metadata and specification for a PersistentVolumeClaim. It is typically used in scenarios where PVCs need to be dynamically created, such as in the context of ephemeral volumes or StatefulSets.

Constructors

PersistentVolumeClaimTemplateV1()

Properties

Metadata

Gets or sets the metadata for the PersistentVolumeClaim template. The metadata provides additional information about the resource, including fields such as name, namespace, labels, annotations, and more.

Spec

Gets or sets the specification for the PersistentVolumeClaim (PVC) resource.

Applies to