connect Stanza
Placement | job -> group -> service -> connect |
The connect
stanza allows configuring various options for
Consul Connect. It is
valid only within the context of a service definition at the task group
level. For using connect
when Consul ACLs are enabled, be sure to read through
the Secure Nomad Jobs with Consul Connect
guide.
connect
Parameters
sidecar_service
-(sidecar_service: nil)
- This is used to configure the sidecar service injected by Nomad for Consul Connect.sidecar_task
-(sidecar_task:nil)
- This modifies the configuration of the Envoy proxy task.
connect
Examples
The following example is a minimal connect stanza with defaults and is sufficient to start an Envoy proxy sidecar for allowing incoming connections via Consul Connect.
The following example includes specifying upstreams
.
The following is the complete countdash
example. It includes an API service
and a frontend Dashboard service which connects to the API service as a Connect
upstream. Once running, the dashboard is accessible at localhost:9002
.
Limitations
Consul Connect Native services and Nomad variable interpolation are not yet supported.