Skip to content

feat: Helm chart + deploy runbook/SLOs for hosted environments - #179

Merged
AKogut merged 1 commit into
mainfrom
feat/52-cloud-deploy
Jul 31, 2026
Merged

feat: Helm chart + deploy runbook/SLOs for hosted environments#179
AKogut merged 1 commit into
mainfrom
feat/52-cloud-deploy

Conversation

@AKogut

@AKogut AKogut commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Part of #52 — the documented path from zero to a horizontally scaled, hosted Flakemetry.

What's in it

  • deploy/helm/flakemetry — a Helm chart for api / worker / web:
    • Stateless deployments with HorizontalPodAutoscalers on api and worker, so ingestion and processing scale independently with load.
    • A pre-install/pre-upgrade migration hook (prisma migrate deploy) that never seeds — production data is untouched.
    • Secret + env wiring, service account, ingress, health probes, and values.schema-friendly values.yaml.
    • Runs against a managed Postgres and object store — the chart never bundles a database. The queue is a Postgres table, so there is no separate broker.
  • deploy/helm/example-values.yaml — a documented production values file.
  • deploy/README.md — one documented path from zero to a running environment (provision → publish images → configure → helm install).
  • deploy/RUNBOOK.md — SLOs, error-budget policy, scaling guidance, upgrade/rollback, and a symptom→action table.
  • .github/workflows/helm.yml — CI lints and templates the chart on every change so it can't rot.

Verification

  • helm lint — clean.
  • helm template — renders 11 resources (ServiceAccount, Secret, 2 Services, 3 Deployments, 2 HPAs, Ingress, migrate Job); required-value guards fire on missing database.url/auth.secret; existingSecret suppresses the managed Secret; AI env is wired into worker + web when enabled.
  • pnpm turbo run build lint typecheck test — 61/61 green; pnpm format:check clean (helm templates excluded from Prettier, validated by helm lint instead).

Deliberately scoped out (follow-up)

Terraform modules for the managed dependencies and reference dogfood OTel dashboards for the platform's own telemetry are filed as a follow-up rather than shipped unverifiable here. The Helm-against-managed-deps path already satisfies the issue's core acceptance criterion.

Add deploy/ with a Helm chart for a horizontally scaled Flakemetry: stateless
api/worker/web with HorizontalPodAutoscalers, a pre-install migration hook that
never seeds, secret/configmap wiring, and ingress. The chart runs against a
managed Postgres and object store — never bundling a database. Ships an example
production values file, a deploy guide with one documented path from zero to a
running environment, and an operations runbook with SLOs and a symptom-to-action
table. A helm CI workflow lints and templates the chart on every change.
@AKogut
AKogut merged commit 9b083c9 into main Jul 31, 2026
3 checks passed
@AKogut
AKogut deleted the feat/52-cloud-deploy branch July 31, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant