Ticketing services and settings
Every service in ticket-iac has base/<service> and overlays/prod/<service>. Only production exists: the staging
overlays were dropped. Each prod overlay is listed in overlays/prod/kustomization.yaml. All services run in the
namespace production.
To see the rendered manifests, run this on ticket-node-1 from a checkout of ticket-iac:
Services¶
| Service | Added | Notes |
|---|---|---|
| coreapi | 2026-10-28 | Shared (RWX) Longhorn PVC in the base, with no prod PVC patch. Settings in its ConfigMap. Points at authapi-stg |
spatioviewadmin (Deployment spatio, label app: spatio) |
2026-10-29 | 2 replicas, HPA and PDB (see below). AUTHAPI_URL points at authapi-stg |
| ticket-cms | 2026-10-28 | ConfigMap for its browser (runtime) config, wired with envFrom |
| authapi-stg | 2026-11-12 | The new AuthAPI, deployed with the same manifests as PlayTelly's. -stg is only a name suffix (nameSuffix: -stg) so it can run next to the old authapi, which stays for ticketing; it runs in production. COREAPI_BASE_URL is coreapi-service |
| NATS JetStream | 2026-11-12 | overlays/prod/nats/: ConfigMap, StatefulSet, Service, PDB and README.md. coreapi gets NATS_URL |
| Postgres | not recorded | CloudNativePG Cluster; CPU request in millicores (300m) |
The TLS secret is commented out of git, so Argo CD doesn't track it.
Settings every Deployment keeps¶
| Setting | Value | Why |
|---|---|---|
imagePullPolicy |
IfNotPresent, never Always |
A pod restart then doesn't need the registry or DNS. Find them with grep -rn "imagePullPolicy" base overlays |
| Resource limits | Set on every container | Updated with the 2026-10-28 overlays |
spatio scaling¶
In overlays/prod/spatioviewadmin/:
| File or field | Value |
|---|---|
kustomization.yaml |
replicas: [{count: 2, name: spatio}] |
spatio-hpa.yaml |
2 to 4 replicas, target 70% CPU and 70% memory |
spatio-pdb.yaml |
minAvailable: 1 |
coreapi settings¶
| Key | Value or rule |
|---|---|
REDIS_*, storage-path keys |
Unprefixed: coreapi reads them without a COREAPI_ prefix |
| Ticketing workspace ID | Pinned to 95b14571-8b53-4fce-a448-65d80a7abafc in coreapi and spatioviewadmin |
COREAPI_SECRETS_ENCRYPTION_KEY |
Set in the Secret. Never change it: data encrypted with it can't be read with a new key |
COREAPI_AUTHAPI_PSK |
Shared by coreapi and authapi-stg; both must hold the same value. Kept in the Secret; never print it |
CORS_ORIGIN |
Includes johor.gov.my |
NATS_URL |
The NATS Service in production |
For every coreapi variable, see CoreAPI environment variables.
Check¶
Expected: the pods for coreapi, authapi-stg, spatio, nats and ticket-cms are all Running.
spatio admin proxy¶
The browser never calls AuthAPI or CoreAPI directly. It calls the admin's own address, and the admin's nginx forwards
the calls. The settings are in overlays/prod/spatioviewadmin/configmap.yml (ticket-iac commits 3305f69 and
6b1c45d):
| Key | Value | Meaning |
|---|---|---|
VITE_API_BASE_URL |
/spatio |
Browser API calls stay on the admin's address |
VITE_AUTH_API_URL |
/spatio/api/auth |
Browser login calls |
AUTHAPI_URL |
http://authapi-stg.production.svc.cluster.local:3002 |
Where nginx forwards /spatio/api/auth/ (to /api/v1/ on AuthAPI) |
COREAPI_URL |
http://coreapi-service.production.svc.cluster.local:3000 |
Where nginx forwards /spatio/api/ and /spatio/auth/ |
- The proxy needs the spatio image
prod-v0.0.2or later. - The browser config is written when the container starts (
docker/40-runtime-env.sh), so a ConfigMap change needskubectl -n production rollout restart deployment/spatio. - This proxy replaces the idea of giving AuthAPI its own public domain.