full-setup and the host swarmctl reach the controller as a pod, not through a host socket
This commit is contained in:
parent
3682c22fb1
commit
bb7d616ce9
1 changed files with 222 additions and 157 deletions
|
|
@ -9,16 +9,16 @@
|
|||
# needs a TPM). A pkcs11 store unseals itself at init, so here
|
||||
# the unseal comes right after init, before the granter.
|
||||
# 2 SSO account `swarmctl user add mara --group admins`.
|
||||
# 8 spawn `POST /api/agents` on the controller socket, as the swarm
|
||||
# 8 spawn `POST /api/agents` on the controller pod's listener, as the swarm
|
||||
# UI's create form does, with the reviewer archetype's defaults.
|
||||
# 9 first agent The same endpoint, for `iris`: `swarmctl agent create` has no
|
||||
# archetype flag, and a custom agent's config repo would need
|
||||
# inputs the VM cannot resolve offline.
|
||||
# `swarmctl setup status` is read before the agents deploy: steps 1-6 done; step 9
|
||||
# (the product's hard-coded `ruth`) stays undone, as no root agent exists here. Not
|
||||
# scripted yet: step 3, the first SSO login to the forge (an OIDC code flow against
|
||||
# authelia), and `swarmctl forge make-admin`.
|
||||
# Green when `GET /api/agents/status` on the controller socket lists `iris` and
|
||||
# The script reaches the controller pod's TLS listener as the gateway does (ClusterIP, services
|
||||
# root, gateway client leaf). `swarmctl login` needs a browser, so the host's swarmctl stops at
|
||||
# "not logged in": `setup status` leaves steps 9 and 10 unknown, `schedule list` names the login.
|
||||
# Not scripted yet: step 3, the first SSO login to the forge, and `swarmctl forge make-admin`.
|
||||
# Green when `GET /api/agents/status` on the controller pod's listener lists `iris` and
|
||||
# `spawn` with `freshness` fresh and `needs_login` true.
|
||||
#
|
||||
# Offline: the test seeds the swarm's forge with `hyperhive/hyperhive` (one
|
||||
|
|
@ -140,7 +140,12 @@ in
|
|||
# find their binaries on the node's PATH.
|
||||
test.overrideTestDerivation (old: {
|
||||
env = (old.env or { }) // {
|
||||
FULL_SETUP_SOCKET = deploy.swarm-controller.socketPath;
|
||||
FULL_SETUP_CONTROLLER_NAME = swarm.controller.tcp.domain;
|
||||
FULL_SETUP_CONTROLLER_PORT = toString swarm.controller.tcp.port;
|
||||
FULL_SETUP_CONTROLLER_SERVICE = deploy.swarm-controller.tcp.serviceHost;
|
||||
FULL_SETUP_CONTROLLER_CERT = deploy.swarm-controller.tcp.gatewayClientCertFile;
|
||||
FULL_SETUP_CONTROLLER_KEY = deploy.swarm-controller.tcp.gatewayClientKeyFile;
|
||||
FULL_SETUP_SERVICES_ROOT = "${deploy.hive-controller.tls.stateDir}/swarm-services-root.pem";
|
||||
FULL_SETUP_FORGE_DOMAIN = swarm.forge.domain;
|
||||
FULL_SETUP_SWARM_DOMAIN = swarm.domain;
|
||||
FULL_SETUP_HIVE = hive;
|
||||
|
|
|
|||
Loading…
Reference in a new issue