nomad

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

testjob.nomad (467B)


      1 job "test" {
      2   datacenters = ["dc1"]
      3   type = "service"
      4   group "server" {
      5     count = 2
      6 
      7     volume "test" {
      8       type = "csi"
      9       source = "test"
     10       access_mode = "multi-node-multi-writer"
     11       attachment_mode = "file-system"
     12     }
     13 
     14     task "server" {
     15       driver = "docker"
     16       config {
     17         image = "alpine"
     18         args  = ["sleep", "3600"]
     19       }
     20       volume_mount {
     21         volume = "test"
     22         destination = "/mnt/test"
     23       }
     24     }
     25   }
     26 }