4d71f22a11
This PR adds the capability of running Connect Native Tasks on Nomad, particularly when TLS and ACLs are enabled on Consul. The `connect` stanza now includes a `native` parameter, which can be set to the name of task that backs the Connect Native Consul service. There is a new Client configuration parameter for the `consul` stanza called `share_ssl`. Like `allow_unauthenticated` the default value is true, but recommended to be disabled in production environments. When enabled, the Nomad Client's Consul TLS information is shared with Connect Native tasks through the normal Consul environment variables. This does NOT include auth or token information. If Consul ACLs are enabled, Service Identity Tokens are automatically and injected into the Connect Native task through the CONSUL_HTTP_TOKEN environment variable. Any of the automatically set environment variables can be overridden by the Connect Native task using the `env` stanza. Fixes #6083 |
||
---|---|---|
.. | ||
audit.go | ||
audit_test.go | ||
autopilot.go | ||
autopilot_test.go | ||
consul.go | ||
consul_test.go | ||
limits.go | ||
limits_test.go | ||
plugins.go | ||
plugins_test.go | ||
README.md | ||
sentinel.go | ||
tls.go | ||
tls_test.go | ||
vault.go | ||
vault_test.go |
Overview
nomad/structs/config
is a package for configuration struct
s that are
shared among packages that needs the same struct
definitions, but can't
import each other without creating a cyle. This config
package must be
terminal in the import graph (or very close to terminal in the dependency
graph).