nomad

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

commit 2040382648231a1303a2f8fcc6413984c81d683f
parent a887dcaeb73eda88597775998b0907712c4a6620
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Thu, 30 Mar 2023 16:35:21 +0200

feat(snapshots): use multi-writer volume

Diffstat:
Mhcl/infra/snapshots/nomad-snapshots.nomad | 2+-
Mhcl/infra/snapshots/snapshot-volume.hcl | 7++++++-
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/hcl/infra/snapshots/nomad-snapshots.nomad b/hcl/infra/snapshots/nomad-snapshots.nomad @@ -18,7 +18,7 @@ job "snapshot" { volume "nomad-snapshots" { type = "csi" source = "nomad-snapshots" - access_mode = "single-node-writer" + access_mode = "multi-node-multi-writer" attachment_mode = "file-system" } diff --git a/hcl/infra/snapshots/snapshot-volume.hcl b/hcl/infra/snapshots/snapshot-volume.hcl @@ -14,7 +14,7 @@ plugin_id = "nfs" # youintend to use in a job's volume block # https://www.nomadproject.io/docs/commands/volume/register capability { - access_mode = "single-node-writer" + access_mode = "multi-node-multi-writer" attachment_mode = "file-system" } @@ -23,3 +23,8 @@ context { server = "192.168.1.1" share = "csi-nomad-snapshots" } + +mount_options { + # mount.nfs: Either use '-o nolock' to keep locks local, or start statd. + mount_flags = ["nolock"] +}