my-homelab-configs/infra/heimdall/README.md

48 lines
1.6 KiB
Markdown

# Heimdall
Heimdall runs on the Debian host as an always-on Docker Compose service. It is
intentionally outside Kubernetes so the lab navigation dashboard remains
available during cluster rebuilds or outages.
Deploy or refresh it from the Debian server:
```bash
./jeannie deploy-heimdall
```
The default install root is `/data/homelab-heimdall`. Runtime config is stored
under `/data/homelab-heimdall/data/config`, and the dashboard is published on
port `8082` before the OCI edge proxy exposes it as
`https://heimdall.lab2025.duckdns.org/`.
`links.json` is generated by `scripts/generate-heimdall-links`. The generator
discovers public DuckDNS services from `homelab.yml`, Kubernetes Ingress hosts
from `apps/**/*.yaml`, and opt-in local services from Compose labels or
Kubernetes annotations. `./jeannie deploy-heimdall` refreshes the generated file
before copying the stack to the Debian host.
For Docker Compose services that should appear on the dashboard, add labels next
to the service definition:
```yaml
labels:
homelab.heimdall.enabled: "true"
homelab.heimdall.title: Jellyfin
homelab.heimdall.url: "http://{debian.lan_ip}:${JELLYFIN_PORT:-8096}/"
homelab.heimdall.description: Media streaming server
```
For local-only Kubernetes services, add matching annotations and provide the
URL explicitly:
```yaml
metadata:
annotations:
homelab.heimdall/enabled: "true"
homelab.heimdall/title: Example App
homelab.heimdall/url: "http://192.168.100.240/example/"
```
The sidecar container reruns `seed-heimdall.py` periodically and upserts links
into Heimdall's SQLite database without deleting manually added tiles.