Share via


VolumeV1.HostPath Property

Definition

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.

[YamlDotNet.Serialization.YamlMember(Alias="hostPath")]
public Aspire.Hosting.Kubernetes.Resources.HostPathVolumeSourceV1? HostPath { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="hostPath")>]
member this.HostPath : Aspire.Hosting.Kubernetes.Resources.HostPathVolumeSourceV1 with get, set
Public Property HostPath As HostPathVolumeSourceV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to