volume-git.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 = "git" 6 # Display name of the volume. 7 name = "git" 8 # ID of the physical volume from the storage provider 9 external_id = "csi-git" 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-git" 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