Deploy¶
flowline deploys as a Kubernetes application rendered by the Jac runtime itself. The supported path is jachammer, which runs that render for you on a managed cluster with Postgres provisioned.
What gets deployed¶
flowchart LR
user["Browser"] --> alb["Load balancer<br/>vanity domain"]
gh["GitHub"] --> alb
alb --> gw["Gateway pods<br/><small>1 to 2 replicas</small>"]
gw --> app["App pods<br/><small>2 to 6 replicas, 2 workers each</small>"]
app --> pg[("Postgres")]
| Piece | Comes from |
|---|---|
| App pods | [project] in jac.toml, sized by [scale.kubernetes], [serve.workers] processes each, serving the client bundle and the walker API |
| Gateway pods | [scale.gateway], proxying requests to the app with a 120 second forward timeout |
| Postgres | Provisioned by the platform; both the graph and the docs store live there |
| Monitoring | Off. jachammer refuses a deploy that runs its own Prometheus and Grafana, and the same [scale.monitoring] switch gates /metrics; see Operations |
| Secrets | The project's environment variables, applied as a Kubernetes Secret |
The platform hands every deploy to the Jac release pinned in jac.toml
(0.39.2), which renders the manifests and builds the client
bundle. What runs in production is decided by that pin, not by the jac on
your machine.
Choose a path¶
-
jachammer deployfrom the repo: preview URLs, production with a vanity domain, environment variables, rollbacks and CI tokens. -
Your own cluster
jac scale deploy main.jactargets the current Kubernetes context. Render and review the manifests first withjac scale deploy --dry-run --show-yaml main.jac.
Environments¶
| Environment | URL | jachammer project |
|---|---|---|
| Production | https://flowline.jachammer.app | Flowline, production slot |
| Development | https://flowline-dev.jachammer.app | Dev Flowline, production slot |
The CLI deploys whatever is checked out, so deploy each environment from its
branch: dev for development, main for production.
Before every production deploy¶
- CI is green on the commit: format, lint, type check, and the serve job (deploy dry run, API, webhook and browser gates)
-
jac.tomldeclares the web app as[apps.flowline]withentry-point = "main"and the review service as[apps.pr_review] - The project's environment has every variable in
Production configuration, including
GITHUB_APP_WEBHOOK_SECRETandJAC_BRIDGE_TOKEN(set before the deploy that first ships the review service) - The SSO callbacks and the GitHub App's URLs point at this deployment's
HOST - A Jac version bump was exercised on dev with real walker calls first (Operations)