volume_mount Stanza
Placement | job -> group -> task -> volume_mount |
The volume_mount
stanza allows the task to specify how a group
volume
should be mounted into the task.
The Nomad client will make the volumes available to tasks according to this configuration, and it will fail the allocation if the client configuration updates to remove a volume that it depends on.
volume_mount
Parameters
volume
(string: "")
- Specifies the group volume that the mount is going to access.destination
(string: "")
- Specifies where the volume should be mounted inside the task's allocation.read_only
(bool: false)
- When a group volume is writeable, you may specify that it isread_only
on a per mount level using theread_only
option here.