feat: Helm chart + deploy runbook/SLOs for hosted environments - #179
Merged
Conversation
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.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #52 — the documented path from zero to a horizontally scaled, hosted Flakemetry.
What's in it
deploy/helm/flakemetry— a Helm chart forapi/worker/web:prisma migrate deploy) that never seeds — production data is untouched.values.schema-friendlyvalues.yaml.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 missingdatabase.url/auth.secret;existingSecretsuppresses the managed Secret; AI env is wired into worker + web when enabled.pnpm turbo run build lint typecheck test— 61/61 green;pnpm format:checkclean (helm templates excluded from Prettier, validated byhelm lintinstead).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.