Files
sbbb/scripts/local-urls.sh
Sienna Meridian Satterwhite 5d9bd7b067 chore: initial infrastructure scaffold
Kustomize base + overlays for the full Sunbeam k3s stack:
- base/mesh      — Linkerd edge (crds + control-plane + viz)
- base/ingress   — custom Pingora edge proxy
- base/ory       — Kratos 0.60.1 + Hydra 0.60.1 + login-ui
- base/data      — CloudNativePG 0.27.1, Valkey 8, OpenSearch 2
- base/storage   — SeaweedFS master + volume + filer (S3 on :8333)
- base/lasuite   — Hive sync daemon + La Suite app placeholders
- base/media     — LiveKit livekit-server 1.9.0
- base/devtools  — Gitea 12.5.0 (external PG + Valkey)
overlays/local   — sslip.io domain, mkcert TLS, Lima hostPort
overlays/production — stub (TODOs for sunbeam.pt values)
scripts/         — local-up/down/certs/urls helpers
justfile         — up / down / certs / urls targets
2026-02-28 13:42:27 +00:00

30 lines
1008 B
Bash
Executable File

#!/usr/bin/env bash
# Print all local service URLs for the current Lima VM IP.
set -euo pipefail
echo "==> Getting Lima VM IP..."
LIMA_IP=$(limactl shell sunbeam hostname -I | awk '{print $1}')
if [[ -z "$LIMA_IP" ]]; then
echo "ERROR: Could not determine Lima VM IP. Is the 'sunbeam' VM running?" >&2
exit 1
fi
BASE="${LIMA_IP}.sslip.io"
echo ""
echo "Sunbeam local URLs (Lima IP: $LIMA_IP)"
echo "============================================"
echo " Docs: https://docs.${BASE}"
echo " Meet: https://meet.${BASE}"
echo " Drive: https://drive.${BASE}"
echo " Mail: https://mail.${BASE}"
echo " Chat: https://chat.${BASE}"
echo " People: https://people.${BASE}"
echo " Source: https://src.${BASE}"
echo " Auth: https://auth.${BASE}"
echo " S3: https://s3.${BASE}"
echo ""
echo " Linkerd viz: kubectl port-forward -n mesh svc/linkerd-viz 8084:8084"
echo " then open http://localhost:8084"
echo ""