HostPathVolumeSourceV1 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |