From 8dadd1659b13cc34abd1ef8986d47f8c7c638399 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 31 Oct 2016 00:02:43 -0400 Subject: [PATCH] Update service example in init command --- command/init.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/command/init.go b/command/init.go index 07006b5fa..5fad41cff 100644 --- a/command/init.go +++ b/command/init.go @@ -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 {