Update home-cluster location: Proxmox SSH method, CT access via pct exec, TrueNAS notes
This commit is contained in:
parent
ff4370976b
commit
c03ad3e3bc
1 changed files with 32 additions and 136 deletions
|
|
@ -1,150 +1,46 @@
|
|||
# Home AI Cluster — 192.168.170.0/24
|
||||
# Home Cluster — 192.168.170.x
|
||||
|
||||
## Summary
|
||||
Last updated: 2026-06-22
|
||||
|
||||
Four-machine local AI platform. All machines **ONLINE**.
|
||||
Domain: `4min.pro` (REG.RU DNS + Let's Encrypt via NPM).
|
||||
Port forwarding 80/443 → 192.168.170.30 (NPM).
|
||||
## Topology
|
||||
|
||||
**Last updated: 2026-06-07**
|
||||
| Host | IP | User | Access | Role |
|
||||
|------|-----|------|--------|------|
|
||||
| Keenetic Peak | 192.168.170.1 | admin | Telnet only (HTTP API broken) | Router/DNS/VPN |
|
||||
| TrueNAS | 192.168.170.22 | truenas_admin | SSH password (0000) | NAS/ZFS/NFS |
|
||||
| Docker host | 192.168.170.30 | root | SSH key id_ed25519 | 84 Docker services |
|
||||
| Proxmox | 192.168.170.40 | root | sshpass -p cityweek | Hypervisor |
|
||||
| CT100 Forgejo | 192.168.170.41 | — | via pct exec 100 on Proxmox | Git server |
|
||||
| CT102 MCP Hub | 192.168.170.43 | — | via pct exec 102 on Proxmox | MCP servers |
|
||||
| CT200 VPN GW | 192.168.170.254 | admin | bSNMx7H9OlQ3XiAI | WireGuard gateway |
|
||||
| qore AI | 192.168.170.70 | root | SSH key id_ed25519 | Ollama+ComfyUI |
|
||||
|
||||
## Network
|
||||
## SSH Notes
|
||||
|
||||
| Host | IP | Role |
|
||||
|------|----|------|
|
||||
| Keenetic Peak | 192.168.170.1 | Router / DHCP / NAT |
|
||||
| TrueNAS | 192.168.170.22 | NAS / ZFS / NFS |
|
||||
| Docker host | 192.168.170.30 | 13 Docker services |
|
||||
| Proxmox | 192.168.170.40 | Hypervisor LXC |
|
||||
| AI Server | 192.168.170.10 | **Not configured** |
|
||||
- Docker host, qore: `ssh -i ~/.ssh/id_ed25519 root@<ip>`
|
||||
- Proxmox: `sshpass -p "cityweek" ssh -o StrictHostKeyChecking=no root@192.168.170.40`
|
||||
- TrueNAS: `sshpass -p "0000" ssh -o StrictHostKeyChecking=no truenas_admin@192.168.170.22`
|
||||
- CT100/102/200: no direct SSH — use `pct exec <vmid> -- bash -c '...'` from Proxmox
|
||||
- Keenetic: `telnet 192.168.170.1` (user: admin, pass: менеджер паролей)
|
||||
|
||||
---
|
||||
## Git Remote
|
||||
|
||||
## Router — Keenetic Peak (192.168.170.1)
|
||||
|
||||
**Access:** Telnet port 23, login `admin`
|
||||
**IMPORTANT:** Use Telnet scripts only — HTTP API auth does NOT work from Python (SameSite cookie bug).
|
||||
|
||||
Management scripts on Mac (192.168.170.x / airM1):
|
||||
- `python3 /Users/post/VScode/network/keenetic-pull.py` — download config with timestamp
|
||||
- `python3 /Users/post/VScode/network/keenetic-push.py --cmd "<cmd>"` — apply command
|
||||
|
||||
Key config:
|
||||
- LAN: Bridge0 → Home, 192.168.170.1/24
|
||||
- DHCP pool: `_WEBADMIN`, range .33–.152
|
||||
- PXE: option 66=192.168.170.30, option 67=netboot.xyz.kpxe
|
||||
- Port forward: 80/443 → 192.168.170.30
|
||||
|
||||
---
|
||||
|
||||
## Proxmox (192.168.170.40)
|
||||
|
||||
OS: Proxmox VE 9.2.3, node `prmx`
|
||||
SSH: `ssh root@192.168.170.40` (password)
|
||||
|
||||
### LXC Containers
|
||||
|
||||
| VMID | Name | IP | Service | Disk |
|
||||
|------|------|----|---------|------|
|
||||
| 100 | forgejo | 192.168.170.41 | Forgejo v10.0.3 :3000 | 256GB |
|
||||
| 102 | mcp | 192.168.170.43 | MCP hub (9 servers) | — |
|
||||
|
||||
Access: `pct exec 100 -- <cmd>`, `pct exec 102 -- <cmd>`
|
||||
|
||||
### Forgejo API Access (from wuu / Windows)
|
||||
|
||||
Basic Auth works: `curl -u "herschel.krustophski@gmail.com:<password>" https://git.4min.pro/api/v1/user`
|
||||
|
||||
SSH access (faster, no token needed): alias `forgejo` in `~/.ssh/config` → `192.168.170.41:22`, key `id_ed25519_forgejo`.
|
||||
|
||||
Token `rampage` (id=4, scope=all, last8=`257cdeab`) created 2026-06-07 — full value stored only at creation time. If lost, create a new one at https://git.4min.pro/user/settings/applications.
|
||||
|
||||
### Forgejo (CT100 — 192.168.170.41)
|
||||
|
||||
- Web: https://git.4min.pro
|
||||
- Data: `/var/lib/forgejo/` (repos + sqlite db + lfs + data)
|
||||
- Config: `/etc/forgejo/app.ini`
|
||||
- Org structure:
|
||||
- `garage` — project repos (KaMaz, kamaz5360, StereoWallND, ProjectionMapping, joystick)
|
||||
- `infra` — shared knowledge base and infrastructure repos
|
||||
|
||||
**Forgejo → NAS backup (daily 3:00 AM, no downtime):**
|
||||
- Script: `/usr/local/bin/forgejo-backup.sh` on Proxmox host
|
||||
- Timer: `systemctl status forgejo-backup.timer` on Proxmox
|
||||
- NFS: `192.168.170.22:/mnt/datapool/backup` → `/mnt/nas-backup` (Proxmox fstab)
|
||||
- Location on NAS: `/mnt/datapool/backup/forgejo/daily/YYYY-MM-DD_HH-MM/forgejo-backup.tar.gz`
|
||||
- Retention: 30 days
|
||||
|
||||
Restore:
|
||||
```bash
|
||||
pct exec 100 -- systemctl stop forgejo
|
||||
pct exec 100 -- bash -c "cd / && tar xzf /proc/self/fd/0" < /mnt/nas-backup/forgejo/daily/<DATE>/forgejo-backup.tar.gz
|
||||
pct exec 100 -- systemctl start forgejo
|
||||
Forgejo SSH (always):
|
||||
```
|
||||
git remote set-url origin git@192.168.170.41:post/network.git
|
||||
```
|
||||
SSH config: `~/.ssh/config` → Host 192.168.170.41, IdentityFile ~/.ssh/id_ed25519
|
||||
|
||||
### MCP Hub (CT102 — 192.168.170.43)
|
||||
**DO NOT use HTTP with password in URL** — breaks Forgejo token auth and is insecure.
|
||||
|
||||
See `locations/mcp-hub-192-168-170-43.md` for details.
|
||||
## Services
|
||||
|
||||
---
|
||||
See `services.md` for full URL list.
|
||||
|
||||
## Docker Engine (192.168.170.30)
|
||||
Monitoring dashboard: http://192.168.170.30:3001 (Grafana, admin/cityweek)
|
||||
|
||||
OS: Debian 13 trixie
|
||||
SSH: `ssh root@192.168.170.30` (password)
|
||||
Stacks: `/opt/stacks/<name>/docker-compose.yml`
|
||||
## TrueNAS SCALE Notes
|
||||
|
||||
### Running Services
|
||||
|
||||
| Service | Stack | Ports | URL |
|
||||
|---------|-------|-------|-----|
|
||||
| nginx-proxy-manager | npm | 80/443/81 | http://192.168.170.30:81 |
|
||||
| portainer | portainer | 9000 | https://portainer.4min.pro |
|
||||
| open-webui | webui | 8080 | https://ai.4min.pro |
|
||||
| n8n | n8n | 5678 | https://n8n.4min.pro |
|
||||
| flowise | flowise | 3000 | http://192.168.170.30:3000 |
|
||||
| homarr | homarr | 7575 | https://home.4min.pro |
|
||||
| minio | minio | 9001/9002 | http://192.168.170.30:9001 |
|
||||
| netbootxyz | netboot | host | http://192.168.170.30:3002 |
|
||||
| authentik-server | authentik | 9004/9454 | https://auth.4min.pro |
|
||||
| prometheus | monitoring | 9090 | http://192.168.170.30:9090 |
|
||||
| grafana | monitoring | 3100 | http://192.168.170.30:3100 |
|
||||
|
||||
**netboot.xyz MUST use `network_mode: host`** — Docker bridge NAT breaks TFTP UDP data packets.
|
||||
|
||||
### SSL Status (all ✅)
|
||||
|
||||
All 9 domains have valid Let's Encrypt certs: `4min.pro`, `git`, `n8n`, `ai`, `home`, `portainer`, `auth`, `www`, `monitor`.
|
||||
DNS challenge via certbot-dns-regru (API email in NPM config). HTTP challenge used for www/monitor (DNS had negative cache TTL issue).
|
||||
|
||||
---
|
||||
|
||||
## TrueNAS (192.168.170.22)
|
||||
|
||||
SSH: `ssh -i ~/.ssh/id_ed25519 truenas_admin@192.168.170.22`
|
||||
ZFS pool: `datapool` (5.44TB usable, mirror vdev pairs)
|
||||
|
||||
### NFS Shares (exported to 192.168.170.0/24)
|
||||
|
||||
| Path | Purpose |
|
||||
|------|---------|
|
||||
| /mnt/datapool/ai-models | AI model storage |
|
||||
| /mnt/datapool/comfy-models | ComfyUI models |
|
||||
| /mnt/datapool/renders | Render output |
|
||||
| /mnt/datapool/backup | **Backups — Forgejo daily backup here** |
|
||||
|
||||
---
|
||||
|
||||
## AI Server (192.168.170.10) — NOT CONFIGURED
|
||||
|
||||
Hardware: 2× Intel Xeon 36C/72T, 256GB RAM, NVIDIA A6000 48GB VRAM
|
||||
Planned: Ollama, ComfyUI, AllTalk TTS, faster-whisper, LiteLLM Proxy
|
||||
|
||||
---
|
||||
|
||||
## Knowledge Base
|
||||
|
||||
Primary: `https://git.4min.pro/infra/agent-knowledge-base` (Forgejo)
|
||||
GitHub mirror (auto): `https://github.com/krustophski/agent-knowledge-base`
|
||||
Push mirror: Forgejo → GitHub on every commit + every 8h.
|
||||
**Always write to Forgejo. Never push to GitHub directly.**
|
||||
OS filesystem is immutable (read-only ZFS snapshot).
|
||||
Binaries must be installed to `/mnt/datapool/` (writable ZFS pool).
|
||||
See: `problems/truenas-scale-read-only-os-filesystem.md`
|
||||
|
|
|
|||
Reference in a new issue