deploy/k8s holds a Kustomize base (a Deployment and Service for each of the ten images, with the probes, settings and mounts from docs/deployment.md) and a prod overlay that pins every image to one commit SHA and routes only the admin portal and mobile-api's exact WhatsApp webhook path through Traefik with TLS. Secrets never enter git: deploy/k8s/secrets.example holds placeholders, the filled copy in deploy/k8s/secrets is ignored, and deploy/create-secrets.sh loads it without printing a value. deploy/set-release.sh pins or rolls back the release. deploy/check.sh (also a CI step) renders the overlay in one pinned container, validates it with kubeconform and refuses public routes to internal services, latest or untagged images, Secret data or literal secret env values, mixed SHAs and a second or rolling service-counter; --release also refuses unfilled cluster facts. --self-test proves each rule fires on its fixture. OpenSpec change: add-k8s-deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
10 lines
405 B
Bash
10 lines
405 B
Bash
# Read by every Java service except api-gateway (which takes only JAVA_OPTS from here).
|
|
MYSQLHOST=<mysql host from the DBA>
|
|
MYSQLPORT=3306
|
|
REDISHOST=<host of the existing Redis>
|
|
APIGATEWAYURL=http://api-gateway
|
|
ADMIN_PORTAL_BASE_URL=https://co-lite.containerverse.dev
|
|
JAVA_OPTS=-Xmx384m
|
|
# mobile-api does not switch its liveness and readiness endpoints on by itself.
|
|
MANAGEMENT_HEALTH_PROBES_ENABLED=true
|