HostPathVolumeSourceV1
Class sealed net10.0
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.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class HostPathVolumeSourceV1{ // ...}Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesPathget; setstring 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.
Typeget; setstring 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.