Maintain the home cluster from local, over the LAN

semprini-core's `cluster.ps1 maintainer-access` gives this WSL user kubectl
(as elz-operator) and `ssh sem-k8s-1..3`, `ssh sem-gw` straight over the
LAN, so the agent keeps cluster access while the tunnel is down. The host
descriptions now send cluster work to `local`; core still reaches the
cluster through the tunnel. The agent definition in semprini-core says
what it may change there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
paulandClaude Opus 5.5 committed 2026-09-26 11:36:08 +12:00
1 parent 9aa1abf0e2
commit 974abbec1d
4 files changed
+24 -11

No files matched your search

+9 -3
View File
@@ -72,10 +72,10 @@ image on the core host.
│ agent.py (pydantic-ai): shell · read/write/edit │ │ ~/semprini-core: the agent
│ file · fetch_url, on a named host │ │ edits, commits and pushes here
└───────┬──────────────────────────┬────────────────┘ └──────────────────────────────
│ model │ powershell.exe
│ model │ kubectl, ssh (LAN) · powershell.exe
▼ ▼
Ollama on Windows (RTX 4090) Hyper-V: the home cluster VMs (inspect only)
GLM-4.7-Flash
Ollama on Windows (RTX 4090) The home cluster VMs: k3s and containers maintained
GLM-4.7-Flash over the LAN; Hyper-V itself inspected only
```
The agent's result is a typed envelope the daemon relays:
@@ -160,6 +160,12 @@ keeps its checkout of this repository, so `maintainer.py --hold` still works the
**SSH to core.** The service uses the WSL user's key. If `install.sh` cannot connect, it prints
the three commands that create a key, trust the host and authorise the key.
**The home cluster.** From Windows, in semprini-core, run
`.\infra\hyperv\cluster.ps1 maintainer-access`. It gives the WSL user `kubectl` (pinned to the
cluster's version, in `~/.local/bin`) with the `elz-operator` kubeconfig, and a key of its own on
every VM, usable only from the workstation's LAN address, behind `ssh sem-k8s-1..3` and
`ssh sem-gw`. Re-run it after rebuilding a VM or when the workstation's address changes.
**Ollama on Windows.** By default Ollama listens on 127.0.0.1, which WSL's NAT network cannot
reach. Turn on *Expose Ollama to the network* in the Ollama app's settings (the same as
`OLLAMA_HOST=0.0.0.0:11434`). `{windows_host}` in a `base_url` is replaced by the Windows side