hand agents the queue address at container start
HIVE_AGENT_NATS_URL now reaches each container in its hive facts, from the host's deploy.hive-controller.queue.agentNatsUrl, instead of being rendered into the meta flake. The agent option services.hyperhive.agent.queue.natsUrl is removed; the harness unit imports the queue credential whenever the token endpoint is set. On deploy every agent rebuilds once (the rendered flake loses the address), and the harness reads the address from the facts file hive-priv writes before each start. Refs #4857
This commit is contained in:
parent
ba97c64dda
commit
f3c0a87c0f
13 changed files with 54 additions and 31 deletions
|
|
@ -222,8 +222,8 @@ in
|
|||
HIVE_C0RE_OIDC_CLIENT_ID = "hive-${config.services.hyperhive.hiveName}";
|
||||
}
|
||||
//
|
||||
# The agents' half of the same queue, forwarded by `hive_c0re::meta` into
|
||||
# every container.
|
||||
# Where the agents reach the queue: the address goes into every container in
|
||||
# its hive facts (`hive_c0re::lifecycle::hive_facts`).
|
||||
#
|
||||
# ⚠️ By name, like `HIVE_C0RE_NATS_URL` above, and never a loopback
|
||||
# address: inside a container `127.0.0.1` is the agent itself.
|
||||
|
|
|
|||
Loading…
Reference in a new issue