Environments Matrix
Side-by-side comparison of everything that differs between dev and prod. Anything not listed here is shared.
Kubernetes
|
Dev |
Prod |
| App namespace |
tomoda-dev |
tomoda-prod |
Argo Application name |
tomoda-dev |
tomoda-prod |
| Kustomize overlay path |
k8s/apps/tomoda/overlays/dev |
k8s/apps/tomoda/overlays/prod |
| Image tag |
Image Updater, newest dev-* |
Pinned in git (newTag: vX.Y.Z) |
Backend envFrom secret |
backend-secrets-dev |
backend-secrets-prod |
| Backend config ConfigMap |
backend-config-dev |
backend-config-prod |
| PodDisruptionBudget |
tomoda-api-pdb + tomoda-async-pdb (maxUnavailable: 1) |
tomoda-api-pdb + tomoda-async-pdb (minAvailable: 1) |
| HorizontalPodAutoscaler |
tomoda-api-hpa + tomoda-async-hpa (CPU 70 + mem 80; bounds 1-1) |
tomoda-api-hpa + tomoda-async-hpa (CPU 70 + mem 80; bounds 2-3) |
| Extra ingress hosts |
none |
app.tomoda.life, www.tomoda.life (redirected to the apex at the edge) |
Data plane
|
Dev |
Prod |
CNPG Cluster name |
postgres-dev |
postgres-prod |
| DB name |
tomoda_dev |
tomoda_prod |
| DB owner |
tomoda_dev_user |
tomoda_prod_user |
| Credentials Secret |
postgres-dev-credentials (ESO) |
postgres-prod-credentials (ESO) |
| Storage size |
3Gi |
150Gi |
max_connections |
100 |
200 |
shared_buffers |
128MB |
4GB |
effective_cache_size |
(not set) |
12GB |
maintenance_work_mem |
256MB |
1GB |
log_statement |
all |
none |
log_min_duration_statement |
(not set) |
1000 ms |
| CPU request |
50m |
2 |
| Memory request / limit |
128Mi / 256Mi |
8Gi / 16Gi |
| Barman path |
none (no backups) |
s3://tomoda-db-backups/prod/postgres-prod/ (R2, Barman Cloud plugin) |
| ExternalName alias service |
postgres-postgresql |
postgres-prod-postgresql |
| Redis Helm release |
redis-dev |
redis-prod |
| Redis persistence size |
1Gi |
10Gi |
Redis maxmemory (noeviction) |
200mb |
1600mb |
| Redis memory request / limit |
64Mi / 256Mi |
256Mi / 2Gi |
| Redis metrics exporter |
enabled (ServiceMonitor) |
enabled (ServiceMonitor) |
Both Postgres clusters and both Redis releases live in the shared data namespace and are distinguished by name.
Ingress hosts
| Purpose |
Dev |
Prod |
| API |
api-dev.tomoda.life |
api.tomoda.life |
| App |
app-dev.tomoda.life |
tomoda.life (app. and www. redirect here) |
| Static assets |
assets-dev.tomoda.life |
assets.tomoda.life |
| WebSocket origin |
wss://api-dev.tomoda.life/ws |
wss://api.tomoda.life/ws |
| Frontend API base |
https://api-dev.tomoda.life/api/v1 |
https://api.tomoda.life/api/v1 |
| OTA |
ota-dev.tomoda.life |
ota.tomoda.life |
The Argo CD UI (argo-app.tomoda.life) and Grafana (grafana.tomoda.life) are shared across environments.
Build and image pipeline
|
Dev |
Prod |
| Workflow |
images.yml on push to main (changed images only) |
images.yml called by the Release workflow with the tag |
| Tags |
dev-<sha>, dev |
vX.Y.Z |
| Registry |
ghcr.io/tomoda-labs/tomoda-{backend,frontend} |
same packages |
| Rollout |
Automatic on every main build |
Merge the deploy(prod) bump PR |
| Frontend Google web client ID |
287267207777-... |
693047704086-... |
|
Dev |
Prod |
| R2 bucket |
tomoda-assets-dev |
tomoda-assets-prod |
| Assets Worker |
tomoda-assets-dev on assets-dev.tomoda.life |
tomoda-assets-prod on assets.tomoda.life |
| Signing key (GCP SM) |
tomoda-asset-signing-key-dev |
tomoda-asset-signing-key-prod |
| R2 app token (GCP SM) |
tomoda-r2-app-dev-credentials |
tomoda-r2-app-prod-credentials |
Shared between environments
For clarity, these are intentionally not split:
- The k3s cluster and its single server.
- All platform services in
k8s/envs/platform/ (Traefik, cert-manager, ESO, external-dns, oauth2-proxy, monitoring, Loki, NATS, Photon). Xavia OTA runs one instance per env in the platform namespace.
- The Argo CD control plane (
argo-app.tomoda.life).
- The Photon geocoder Service and its index in R2 (
tomoda-photon-index).
- The R2 backup and observability buckets, separated by prefix, not by bucket.
- All GCP Secret Manager secrets except those with explicit
-dev / -prod suffixes.
- The Cloudflare zone and the R2 cluster token (
tomoda-r2-cluster-credentials).