Share via


HostPathVolumeSourceV1 Class

Definition

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.

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

Constructors

HostPathVolumeSourceV1()

Properties

Path

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.

Type

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.

Applies to