nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

commit f9930b744bf27522acd307aed414849108328efa
parent 9d7a688a650c9001e775e8248ad87a4d615b82fa
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Mon,  3 Jul 2023 05:13:54 +0200

feat(myheats-demo): npm build volume

Diffstat:
Ahcl/default/myheats-demo/data-volume.hcl | 31+++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+), 0 deletions(-)

diff --git a/hcl/default/myheats-demo/data-volume.hcl b/hcl/default/myheats-demo/data-volume.hcl @@ -0,0 +1,31 @@ +# Register external nfs volume with Nomad CSI +# https://www.nomadproject.io/docs/commands/volume/register +type = "csi" +# Unique ID of the volume, volume.source field in a job +id = "myheats-demo" +# Display name of the volume. +name = "myheats-demo" +# ID of the physical volume from the storage provider +external_id = "csi-myheats-demo" +plugin_id = "nfs" + +# You must provide at least one capability block +# You must provide a block for each capability +# youintend to use in a job's volume block +# https://www.nomadproject.io/docs/commands/volume/register +capability { + access_mode = "multi-node-multi-writer" + attachment_mode = "file-system" +} + +# https://github.com/kubernetes-csi/csi-driver-nfs/blob/master/docs/driver-parameters.md +context { + server = "192.168.1.1" + share = "csi-myheats-demo" +} + +mount_options { + # mount.nfs: Either use '-o nolock' to keep locks local, or start statd. + mount_flags = ["nolock"] +} +