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
This commit is contained in:
33
scripts/local-down.sh
Executable file
33
scripts/local-down.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
# Stop the Sunbeam Lima VM (preserves disk by default).
|
||||
set -euo pipefail
|
||||
|
||||
DELETE=false
|
||||
HARD=false
|
||||
|
||||
for arg in "$@"; do
|
||||
case $arg in
|
||||
--delete) DELETE=true ;;
|
||||
--hard) HARD=true ;;
|
||||
*)
|
||||
echo "Usage: $0 [--hard] [--delete]" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if $HARD; then
|
||||
echo "==> Force-stopping Lima VM 'sunbeam'..."
|
||||
limactl stop --force sunbeam
|
||||
else
|
||||
echo "==> Stopping Lima VM 'sunbeam' (graceful)..."
|
||||
limactl stop sunbeam
|
||||
fi
|
||||
|
||||
if $DELETE; then
|
||||
echo "==> Deleting Lima VM 'sunbeam' (disk will be lost)..."
|
||||
limactl delete sunbeam
|
||||
echo "==> VM deleted."
|
||||
else
|
||||
echo "==> VM stopped. Disk preserved. Run scripts/local-up.sh to restart."
|
||||
fi
|
||||
Reference in New Issue
Block a user