VolumeMountV1 Properties
Class Properties 7 members
Represents a volume mount configuration in a Kubernetes container.
Gets or sets the path within the container at which the volume will be mounted.
public string MountPath { get; set; } Specifies the mount propagation behavior for the volume mount. Defines how mounts are propagated from the host to the container and vice versa. This property is typically used to control sharing of volumes between containers and impacts the way the volume is mounted in the container environment. Can be set to specific propagation modes such as "HostToContainer", "Bidirectional", or left null for default behavior.
public string? MountPropagation { get; set; } Gets or sets the name of the volume mount. This property specifies the identifier for the volume to be mounted, which is used to reference it within the container.
public string Name { get; set; } Gets or sets a value indicating whether the volume mount is read-only.
public bool? ReadOnly { get; set; }Remarks
When set to true, the volume is mounted in a read-only mode where write operations are not allowed. This property can be null to indicate the absence of an explicit read-only configuration.
Gets or sets the recursive read-only mode configuration for the volume mount. This property determines if the volume should be mounted in recursive read-only mode, which enforces read-only access on all subdirectories and files within the volume.
public string? RecursiveReadOnly { get; set; } Specifies the relative path within the volume from which the container will access data. This property allows you to mount a specific subdirectory of a volume rather than the root directory.
public string SubPath { get; set; } Gets or sets the sub-path expression within the volume mount. This property allows dynamic sub-paths to be specified using environment variable substitutions and provides flexibility for configuring paths at runtime.
public string? SubPathExpr { get; set; }