@@ -16,8 +16,8 @@ description: |-
1616/>
1717
1818The ` service ` block instructs Nomad to register a service with the specified
19- provider; Nomad or Consul. This section of the documentation will discuss the
20- configuration, but please also read the
19+ provider: Nomad or Consul. This section of the documentation discusses the
20+ configuration, but you should also read the
2121[ Nomad service discovery documentation] [ service-discovery ] for more detailed
2222information about the external integrations.
2323
@@ -71,13 +71,13 @@ job "docs" {
7171}
7272```
7373
74- This section of the documentation only cover the job file fields and blocks
75- for service discovery. For more details on using Nomad with Consul please see
74+ This section of the documentation only covers the job file fields and blocks
75+ for service discovery. For more details on using Nomad with Consul, refer to
7676the [ Consul integration documentation] [ service-discovery ] .
7777
7878The ` service ` block can also be at task group level.
7979This enables services in the same task group to opt into [ Consul
80- Service Mesh ] [ connect ] integration.
80+ service mesh ] [ connect ] integration.
8181
8282## ` service ` Parameters
8383
@@ -152,6 +152,15 @@ Service Mesh][connect] integration.
152152 - ` host ` - Advertise the host port for this service. ` port ` must match a port
153153 _ label_ specified in the [ ` network ` ] [ network ] block.
154154
155+ | Service kind | Allowed port value type |
156+ | -------- | ------- |
157+ | Normal | Numeric or port mapping label |
158+ | Uses [ ` connect ` native] [ connect-native ] | Numeric or port mapping label |
159+ | Uses [ ` connect ` sidecar] [ connect-sidecar ] | Numeric |
160+ | Ingress gateway | Port mapping label (optional) |
161+ | Terminating gateway | None (optional) |
162+ | Mesh gateway | External port mapping label |
163+
155164- ` tags ` ` (array<string>: []) ` - Specifies the list of tags to associate with
156165 this service. If this is not supplied, no tags will be assigned to the service
157166 when it is registered.
@@ -202,7 +211,7 @@ Service Mesh][connect] integration.
202211
203212- ` task ` ` (string: "") ` - Specifies the name of the Nomad task associated with
204213 this service definition. Only available on group services. Must be set if this
205- service definition represents a Consul Connect- native service and there is more
214+ service definition represents a Consul service mesh native service and there is more
206215 than one task in the task group.
207216
208217- ` meta ` <code >([ Meta] [ ] : nil)</code > - Specifies a key-value map that annotates
@@ -549,3 +558,5 @@ advertise and check directly since Nomad isn't managing any port assignments.
549558[ `consul.service_identity` ] : /nomad/docs/configuration/consul#service_identity
550559[ identity_block ] : /nomad/docs/job-specification/identity
551560[ weights ] : /consul/docs/services/configuration/services-configuration-reference#weights
561+ [ connect-sidecar ] : /nomad/docs/job-specification/connect#using-sidecar-service
562+ [ connect-native ] : /nomad/docs/job-specification/connect#using-consul-service-mesh-native
0 commit comments