Skip to main content
Schemaobject

io.k8s.api.core.v1.VolumeMount

VolumeMount describes a mounting of a Volume within a container.

Source
specs/apis__batch__v1_openapi.json
Revision
9a79c3bd90f7
Active snapshot
2a9112600697
bindMountOptions array
optional

bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate.

mountPath string
required

Path within the container at which the volume should be mounted.

mountPropagation string
optional

mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).

name string
required

This must match the Name of a Volume.

readOnly boolean
optional

Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.

recursiveReadOnly string
optional

RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise …

subPath string
optional

Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).

subPathExpr string
optional

Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive.