github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/e2e/deployment/input/deployment_auto1.nomad (about)

     1  job "deployment_auto.nomad" {
     2    datacenters = ["dc1"]
     3  
     4    constraint {
     5      attribute = "${attr.kernel.name}"
     6      value     = "linux"
     7    }
     8  
     9    group "one" {
    10      count = 3
    11  
    12      update {
    13        max_parallel = 3
    14        auto_promote = true
    15        canary       = 2
    16      }
    17  
    18      task "one" {
    19        driver = "raw_exec"
    20  
    21        config {
    22          command = "/bin/sleep"
    23  
    24          # change args to update the job, the only changes
    25          args = ["1000001"]
    26        }
    27  
    28        resources {
    29          cpu    = 20
    30          memory = 20
    31        }
    32      }
    33    }
    34  
    35    group "two" {
    36      count = 3
    37  
    38      update {
    39        max_parallel     = 2
    40        auto_promote     = true
    41        canary           = 2
    42        min_healthy_time = "2s"
    43      }
    44  
    45      task "two" {
    46        driver = "raw_exec"
    47  
    48        config {
    49          command = "/bin/sleep"
    50  
    51          # change args to update the job, the only changes
    52          args = ["2000001"]
    53        }
    54  
    55        resources {
    56          cpu    = 20
    57          memory = 20
    58        }
    59      }
    60    }
    61  }