STIQ

STIQ is a SaaS platform hosted on the MEGATRON cluster with full multi-environment support across production, development, and staging.

Overview

PropertyValue
Primary Domainstiq.us
TypeSaaS Platform
Namespacesstiq, stiq-dev, stiq-staging
EnvironmentsProduction, Development, Staging

URLs

Production (stiq namespace)

ServiceURL
Main Sitestiq.us
APIapi.stiq.us
Applicationapp.stiq.us
Admin Paneladmin.stiq.us

Development (stiq-dev namespace)

ServiceURL
Main Sitedev.stiq.us
APIdev-api.stiq.us
Applicationdev-app.stiq.us
Admin Paneldev-admin.stiq.us

Staging (stiq-staging namespace)

ServiceURL
Main Sitestaging.stiq.us
APIstaging-api.stiq.us
Applicationstaging-app.stiq.us
Admin Panelstaging-admin.stiq.us

Architecture

                        stiq.us
                           │
                           v
              ┌────────────────────────┐
              │    Cloudflare Tunnel    │
              └───────────┬────────────┘
                          │
                          v
              ┌────────────────────────┐
              │   Traefik Ingress      │
              │   Host-based routing   │
              └───────────┬────────────┘
                          │
          ┌───────────────┼───────────────┐
          v               v               v
 ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
 │  stiq (prod) │ │ stiq-dev     │ │ stiq-staging │
 │              │ │              │ │              │
 │ ┌──────────┐ │ │ ┌──────────┐ │ │ ┌──────────┐ │
 │ │   App    │ │ │ │   App    │ │ │ │   App    │ │
 │ │ Frontend │ │ │ │ Frontend │ │ │ │ Frontend │ │
 │ └──────────┘ │ │ └──────────┘ │ │ └──────────┘ │
 │ ┌──────────┐ │ │ ┌──────────┐ │ │ ┌──────────┐ │
 │ │   API    │ │ │ │   API    │ │ │ │   API    │ │
 │ │ Backend  │ │ │ │ Backend  │ │ │ │ Backend  │ │
 │ └──────────┘ │ │ └──────────┘ │ │ └──────────┘ │
 │ ┌──────────┐ │ │ ┌──────────┐ │ │ ┌──────────┐ │
 │ │  Admin   │ │ │ │  Admin   │ │ │ │  Admin   │ │
 │ │  Panel   │ │ │ │  Panel   │ │ │ │  Panel   │ │
 │ └──────────┘ │ │ └──────────┘ │ │ └──────────┘ │
 │ ┌──────────┐ │ │ ┌──────────┐ │ │ ┌──────────┐ │
 │ │ Database │ │ │ │ Database │ │ │ │ Database │ │
 │ └──────────┘ │ │ └──────────┘ │ │ └──────────┘ │
 └──────────────┘ └──────────────┘ └──────────────┘

Environment Promotion

Code changes flow through the environments:

Development (stiq-dev)
    │
    │  Manual promotion / PR merge
    v
Staging (stiq-staging)
    │
    │  Validation + approval
    v
Production (stiq)

Networking

All STIQ subdomains are routed through the Cloudflare tunnel using Pattern B:

  • Hostname matched at Cloudflare
  • Proxied to https://localhost:32672 (Traefik NodePort) with noTLSVerify
  • Traefik routes to the correct namespace based on hostname

Quick Commands

# Check all STIQ pods across environments
kubectl get pods -n stiq
kubectl get pods -n stiq-dev
kubectl get pods -n stiq-staging

# View services
kubectl get svc -n stiq

# View ingress routes
kubectl get ingressroute -n stiq

# Tail API logs
kubectl logs -n stiq -l app=api --tail=100 -f

# Scale API replicas
kubectl scale deployment/api -n stiq --replicas=3