data-volume.hcl (881B)
1 # Register external nfs volume with Nomad CSI 2 # https://www.nomadproject.io/docs/commands/volume/register 3 type = "csi" 4 # Unique ID of the volume, volume.source field in a job 5 id = "0x0" 6 # Display name of the volume. 7 name = "0x0" 8 # ID of the physical volume from the storage provider 9 external_id = "csi-0x0" 10 plugin_id = "nfs" 11 12 # You must provide at least one capability block 13 # You must provide a block for each capability 14 # youintend to use in a job's volume block 15 # https://www.nomadproject.io/docs/commands/volume/register 16 capability { 17 access_mode = "multi-node-multi-writer" 18 attachment_mode = "file-system" 19 } 20 21 # https://github.com/kubernetes-csi/csi-driver-nfs/blob/master/docs/driver-parameters.md 22 context { 23 server = "turris" 24 share = "csi-0x0" 25 } 26 27 mount_options { 28 # mount.nfs: Either use '-o nolock' to keep locks local, or start statd. 29 mount_flags = ["nolock"] 30 } 31