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

     1  job "service_check_restart" {
     2    type = "service"
     3  
     4    group "group" {
     5      task "task" {
     6        service {
     7          name = "http-service"
     8  
     9          check_restart {
    10            limit           = 3
    11            grace           = "10s"
    12            ignore_warnings = true
    13          }
    14  
    15          check {
    16            name = "random-check"
    17            type = "tcp"
    18            port = "9001"
    19          }
    20        }
    21      }
    22    }
    23  }