github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/servicediscovery/input/nomad_provider.nomad (about)

     1  job "service_discovery" {
     2    datacenters = ["dc1"]
     3    type        = "service"
     4  
     5    constraint {
     6      attribute = "${attr.kernel.name}"
     7      value     = "linux"
     8    }
     9  
    10    group "service_discovery" {
    11  
    12      service {
    13        name     = "http-api"
    14        provider = "nomad"
    15        tags     = ["foo", "bar"]
    16      }
    17  
    18      task "test" {
    19        driver = "raw_exec"
    20  
    21        config {
    22          command = "bash"
    23          args    = ["-c", "sleep 15000"]
    24        }
    25      }
    26    }
    27  }