CoreStation
CoreStation is a SaaS platform designed for fire departments, running on the MEGATRON cluster with three environments.
Overview
| Property | Value |
|---|---|
| Primary Domain | corestation.io |
| Type | Fire Department SaaS |
| Namespaces | corestation, corestation-dev, corestation-staging |
| Environments | Production, Development, Staging |
| Source Code | /home/lucas/fire-department-saas/ |
URLs
Production (corestation namespace)
| Service | URL |
|---|---|
| Main Site | corestation.io |
| API | api.corestation.io |
| Application | app.corestation.io |
| Admin Panel | admin.corestation.io |
Development (corestation-dev namespace)
| Service | URL |
|---|---|
| Main Site | dev.corestation.io |
| API | dev-api.corestation.io |
| Application | dev-app.corestation.io |
| Admin Panel | dev-admin.corestation.io |
Staging (corestation-staging namespace)
| Service | URL |
|---|---|
| Main Site | staging.corestation.io |
| API | staging-api.corestation.io |
| Application | staging-app.corestation.io |
| Admin Panel | staging-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