Skip to content
Docs Try Aspire

HostPathVolumeSourceV1 Properties

Class Properties 2 members
Represents a HostPath volume source in Kubernetes. A HostPath volume mounts a directory from the host node's filesystem into a pod. This can be used for scenarios such as sharing data between containers or accessing specific host resources.
Gets or sets the path on the host where the volume source is located. This is the filesystem path on the host to be mounted into the container.
public string Path { get; set; }
Gets or sets the type for the host path volume. Specifies the type of the HostPath volume, indicating how the path should be interpreted by the system. Examples of types include "DirectoryOrCreate", "FileOrCreate", etc. The value is case-sensitive.
public string Type { get; set; }