VolumeV1
Class sealed net10.0
Represents a volume configuration definition within a Kubernetes pod. This class allows specifying different types of volume sources such as Image, HostPath, Persistent Volume Claim, ConfigMap, Secret, and others, enabling configuration of data storage in a pod.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class VolumeV1{ // ...} 9 members
Constructors1
Section titled ConstructorsProperties8
Section titled PropertiesConfigMapget; set Represents the Kubernetes ConfigMap volume source configuration.
EmptyDirget; set Gets or sets the configuration for an EmptyDir volume source in Kubernetes. An EmptyDir volume is a temporary storage directory that is created empty when a pod is assigned to a node. The volume's contents only exist for the lifetime of the pod and will be deleted when the pod is removed.
Ephemeralget; set Gets or sets the configuration for an ephemeral volume associated with the resource. An ephemeral volume is a transient storage volume tied to the lifecycle of a pod. This property allows specifying the template for a PersistentVolumeClaim that defines the parameters of the ephemeral volume.
HostPathget; set Gets or sets the HostPath volume source for the volume. HostPath volume sources allow mounting a file or directory from the host node's filesystem into a pod. This is typically used for scenarios like accessing host filesystem resources or sharing data between containers in a pod.
Imageget; set Represents the configuration for an image-based volume source within a Kubernetes Volume definition.
Nameget; setstring Gets or sets the name of the volume. This property is used to identify the volume within the context of a Kubernetes resource. It is a required value and must be unique among all defined volumes in a specific resource.
PersistentVolumeClaimget; set Represents a PersistentVolumeClaim (PVC) that will be mounted as a volume in a Kubernetes environment. A PVC is a request for storage by a user, and this property links the volume configuration to an existing claim.
Secretget; set Represents a secret volume source in Kubernetes. This property is used to specify configuration details for a volume that retrieves data from a Kubernetes Secret resource.