Update service example in init command

This commit is contained in:
Seth Vargo 2016-10-31 00:02:43 -04:00
parent 77416c85b9
commit 8dadd1659b
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
1 changed files with 11 additions and 2 deletions

View File

@ -144,9 +144,18 @@ job "example" {
}
}
# The "service" stanza instructs Nomad to register this task as a service
# in the service discovery engine, which is currently Consul. This will
# make the service addressable after Nomad has placed it on a host and
# port.
#
# For more information and examples on the "service" stanza, please see
# the online documentation at:
#
# https://www.nomadproject.io/docs/job-specification/service.html
#
service {
# ${TASKGROUP} is filled in automatically by Nomad
name = "${TASKGROUP}-redis"
name = "global-redis-check"
tags = ["global", "cache"]
port = "db"
check {