Research-Stack/5-Applications/cluster-dashboard/backend/entrypoint.sh
Brandon Schneider ed98817257 feat(infra): cluster dashboard + VCN shim indentation fix
- Add LyteNyte Grid cluster dashboard (React + FastAPI + k3s)
  - Real-time telemetry: GPU util/VRAM/temp, CPU/memory, pod counts,
    Tailscale connectivity, OS/kernel info for all 5 cluster nodes
  - WebSocket live updates every 3s, dark theme, virtualized grid
  - k3s deployment with hostNetwork, NodePort 30820, SSH-based collectors
  - Backend uses /proc/stat + /proc/meminfo for portable NixOS metrics
  - Tailscale status via SSH to host (container doesn't run tailscaled)
- Fix vcn_compute_substrate.py indentation (lines 45-269 had 1 extra
  leading space). Script now compiles and runs encode/decode/receipt.

Build: py_compile OK, npm build OK, podman build OK
2026-05-28 01:13:54 -05:00

7 lines
265 B
Bash
Executable file

#!/bin/sh
# Fix SSH key permissions (k8s secret mounts may not preserve mode)
if [ -f /identity/id_ed25519 ]; then
cp /identity/id_ed25519 /root/.ssh/id_ed25519
chmod 600 /root/.ssh/id_ed25519
fi
exec uvicorn main:app --host 0.0.0.0 --port 8787 --workers 1