github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/service-check-driver-address.hcl (about)

     1  job "address_mode_driver" {
     2    type = "service"
     3  
     4    group "group" {
     5      task "task" {
     6        service {
     7          name = "http-service"
     8          port = "http"
     9  
    10          address_mode = "auto"
    11  
    12          check {
    13            name = "http-check"
    14            type = "http"
    15            path = "/"
    16            port = "http"
    17  
    18            address_mode = "driver"
    19          }
    20        }
    21  
    22        service {
    23          name = "random-service"
    24          port = "9000"
    25  
    26          address_mode = "driver"
    27  
    28          check {
    29            name = "random-check"
    30            type = "tcp"
    31            port = "9001"
    32  
    33            address_mode = "driver"
    34          }
    35        }
    36      }
    37    }
    38  }