Supervise and persist ClawdBox node host

This commit is contained in:
Clawdbot
2026-07-30 16:04:28 +10:00
parent 48e30b9d0e
commit cc17432975
4 changed files with 74 additions and 13 deletions

View File

@@ -103,9 +103,10 @@ The `/data` volume preserves data across container restarts:
## OpenClaw Node Host
On container startup, ClawdBox keeps SSH as the foreground service and
opportunistically starts an OpenClaw node host named `ClawdBox-CLI` in the
background.
ClawdBox runs SSH and the `ClawdBox-CLI` node host as separate containers in
the same pod. Kubernetes supervises the node container, while its identity,
runtime configuration, and exec approvals persist under
`/data/agents/clawd/node-home`.
The helper scripts are copied into `/data/agents/clawd/bin/` on each startup:
@@ -115,7 +116,7 @@ status-clawdbox-node
stop-clawdbox-node
```
The node host installs `openclaw@2026.6.1` under
The node host installs `openclaw@2026.7.2-beta.3` under
`/data/agents/clawd/tools/openclaw-node` if it is missing or stale. It gets the
Gateway token from `OPENCLAW_GATEWAY_TOKEN` when set, otherwise from the live
`openclaw` deployment via the mounted kubeconfig.
@@ -123,15 +124,16 @@ Gateway token from `OPENCLAW_GATEWAY_TOKEN` when set, otherwise from the live
Useful overrides:
```bash
OPENCLAW_VERSION=2026.6.1
OPENCLAW_VERSION=2026.7.2-beta.3
OPENCLAW_GATEWAY_HOST=openclaw.apps.lab.apilab.us
OPENCLAW_GATEWAY_PORT=443
OPENCLAW_GATEWAY_TLS=true
CLAWDBOX_NODE_DISPLAY_NAME=ClawdBox-CLI
CLAWDBOX_NODE_HOME=/data/agents/clawd/node-home
```
If node startup fails, the pod still starts and SSH remains available. Check
`/data/agents/clawd/logs/node-host.log` for details.
If node startup fails, SSH remains available while Kubernetes restarts the
node container. Check `/data/agents/clawd/logs/node-host.log` for details.
## Common Tasks