CoreStation

CoreStation is a SaaS platform designed for fire departments, running on the MEGATRON cluster with three environments.

Overview

PropertyValue
Primary Domaincorestation.io
TypeFire Department SaaS
Namespacescorestation, corestation-dev, corestation-staging
EnvironmentsProduction, Development, Staging
Source Code/home/lucas/fire-department-saas/

URLs

Production (corestation namespace)

ServiceURL
Main Sitecorestation.io
APIapi.corestation.io
Applicationapp.corestation.io
Admin Paneladmin.corestation.io

Development (corestation-dev namespace)

ServiceURL
Main Sitedev.corestation.io
APIdev-api.corestation.io
Applicationdev-app.corestation.io
Admin Paneldev-admin.corestation.io

Staging (corestation-staging namespace)

ServiceURL
Main Sitestaging.corestation.io
APIstaging-api.corestation.io
Applicationstaging-app.corestation.io
Admin Panelstaging-admin.corestation.io

Architecture

CoreStation follows the same multi-environment pattern as STIQ:

corestation.io
      │
      v
Cloudflare Tunnel ──> Traefik ──> corestation namespace
                                  ├── app (frontend)
                                  ├── api (backend)
                                  ├── admin (admin panel)
                                  └── database

Deployment

CoreStation has Kustomize-based deployment manifests:

/home/lucas/fire-department-saas/deploy/k8s/
├── base/           # Base manifests
├── overlays/
│   ├── dev/        # Development overrides
│   └── prod/       # Production overrides

Apply with:

# Development
kubectl apply -k /home/lucas/fire-department-saas/deploy/k8s/overlays/dev/

# Production
kubectl apply -k /home/lucas/fire-department-saas/deploy/k8s/overlays/prod/

Quick Commands

# Check pods across all environments
for ns in corestation corestation-dev corestation-staging; do
  echo "=== $ns ===" && kubectl get pods -n $ns
done

# View logs
kubectl logs -n corestation -l app=api --tail=100 -f

# Restart deployment
kubectl rollout restart deployment/api -n corestation