mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Consul: agent config updates for WI (#18774)
This changeset makes two changes: * Removes the `consul.use_identity` field from the agent configuration. This behavior is properly covered by the presence of `consul.service_identity` / `consul.task_identity` blocks. * Adds a `consul.task_auth_method` and `consul.service_auth_method` fields to the agent configuration. This allows the cluster administrator to choose specific Consul Auth Method names for their environment, with a reasonable default.
This commit is contained in:
5
command/agent/testdata/basic.hcl
vendored
5
command/agent/testdata/basic.hcl
vendored
@@ -245,13 +245,16 @@ consul {
|
||||
auto_advertise = true
|
||||
checks_use_advertise = true
|
||||
timeout = "5s"
|
||||
use_identity = true
|
||||
service_auth_method = "nomad-workloads"
|
||||
task_auth_method = "nomad-tasks"
|
||||
|
||||
service_identity {
|
||||
aud = ["consul.io", "nomad.dev"]
|
||||
env = false
|
||||
file = true
|
||||
ttl = "1h"
|
||||
}
|
||||
|
||||
task_identity {
|
||||
aud = ["consul.io"]
|
||||
env = true
|
||||
|
||||
Reference in New Issue
Block a user