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
19 lines
660 B
YAML
19 lines
660 B
YAML
# Co-Lite on Kubernetes: one Deployment and one Service per image (docs/deployment.md section 1).
|
|
# Settings and Secrets are referenced by name only; the prod overlay generates the settings and
|
|
# deploy/create-secrets.sh creates the Secrets. Images carry no tag here: the overlay pins one commit SHA.
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
labels:
|
|
- pairs: {app.kubernetes.io/part-of: co-lite}
|
|
resources:
|
|
- admin-portal.yaml
|
|
- api-gateway.yaml
|
|
- mobile-api.yaml
|
|
- service-auth.yaml
|
|
- service-counter.yaml
|
|
- service-email.yaml
|
|
- service-log.yaml
|
|
- service-member.yaml
|
|
- service-system.yaml
|
|
- service-whatsapp.yaml
|