Added the example for service block

This commit is contained in:
Diptanu Choudhury
2015-11-16 22:43:22 -05:00
parent dc0501e589
commit c9f10f75c4

View File

@@ -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.