From edf7b89408281fa8ca588432e74841cc96fd1d74 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 19 May 2022 20:54:49 -0400 Subject: [PATCH] Update service.check.task definition to match code Nomad errors out when attempting to specify a task for a service that uses consul connect but does not have script or gRPC checks. See https://github.com/hashicorp/nomad/blob/304d0cf5958065d14ab8b704055b1bb11d915876/nomad/structs/structs.go#L6643 for details. --- website/content/docs/job-specification/service.mdx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/content/docs/job-specification/service.mdx b/website/content/docs/job-specification/service.mdx index 9bcb3ce78..af20fe2be 100644 --- a/website/content/docs/job-specification/service.mdx +++ b/website/content/docs/job-specification/service.mdx @@ -171,9 +171,8 @@ Connect][connect] integration. - `host` - Use the host IP and port. - `task` `(string: "")` - Specifies the name of the Nomad task associated with - this service definition. Only available on group services. Must be set if this - service definition represents a Consul Connect-native service and there is more - than one task in the task group. + this service definition. Only available on group services. May only be set for + script or gRPC checks. - `meta` ([Meta][]: nil) - Specifies a key-value map that annotates the Consul service with user-defined metadata. Only available where