mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Added the example for service block
This commit is contained in:
@@ -128,6 +128,19 @@ job "example" {
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
# name = redis
|
||||
tags = ["global", "cache"]
|
||||
port = "db"
|
||||
check {
|
||||
id = "id-alive-check"
|
||||
name = "alive"
|
||||
type = "tcp"
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
}
|
||||
|
||||
# We must specify the resources required for
|
||||
# this task to ensure it runs on a machine with
|
||||
# enough capacity.
|
||||
|
||||
Reference in New Issue
Block a user