Solutions · Preview & test environments
Give every change a place to prove itself.
Plan isolated environments for review, debugging and testing. Keep the application structure familiar while giving each environment its own configuration and lifecycle.
#142fix/checkout-tax
pr-142.preview.example.app
Pull request #142, branch fix/checkout-tax: preview deploying its components.#145feat/team-invites
pr-145.preview.example.app
Pull request #145, branch feat/team-invites: preview being created from CI.#139chore/upgrade-orm
pr-139.preview.example.app
Pull request #139, branch chore/upgrade-orm: preview deleted from CI after merge.
- Isolation
- A namespace per environment
- Data
- Seeded or sanitised, never production
- Lifecycle
- Owner and end date set up front
- Billing
- Per minute the environment exists
The problem
Shared staging is where reviews go to wait.
One staging environment means queues, collisions and a cleanup nobody owns. An environment per change fixes the review, as long as each one has an owner and an end date.
Without: Three branches take turns on one staging.
With Kapten: Each change reviewed in its own isolated environment.
IsolationWithout: Reviews run against a copy of production data.
With Kapten: Seeded fixtures and preview-only secrets.
SecretsWithout: Reviewers test the API without the worker it calls.
With Kapten: A preview shape with every service the change needs.
ArchitectureWithout: Forgotten previews billed for a month.
With Kapten: Billed by the minute, and deleted with one command when the review ends.
Cost
How it works
Make environment ownership explicit.
Review the whole application
An API change often depends on a worker, a database or a frontend. Define the services needed to exercise the change together.
Use data meant for testing
Choose seeded or sanitised data and environment-specific secrets. A review deployment should not need production credentials to be useful.
Set the end date at the start
Assign an owner and a cleanup rule. Include compute, storage and external resources when deciding what should happen after review.
Read before you start
Guides and papers for this path.
- The agentic SREOperating production with agents, and keeping humans in charge.Read the whitepaper
- Design a preview environment that has an end dateDecide what to deploy, which data to use and what to remove when a review environment has done its job.
- Containerize any app: a practical Dockerfile checklistTurn a working repository into a reproducible image. Short Dockerfiles for Node, Python and Go, and the ten rules that make them production-worthy.
- Postgres in production: the checklistWhere to run it, how to back it up, how to prove the backup works, how to connect to it, and what to watch once real users depend on it.
FAQ
A few practical questions.
Can I use this for staging as well?
Yes, staging follows the same environment model but usually has a longer lifecycle. Keep its configuration and access separate from production.
Will deleting an environment remove everything?
Kapten only deletes an environment once it is empty, so delete its components and pipelines first. Check managed databases and anything outside the cluster separately.
Does a preview get created on every pull request today?
Not automatically. Create the environment from CI with the CLI or the API when a pull request opens, and delete it when it closes. Kapten only deletes an environment once it is empty, so remove its components first.
Keep exploring
See how it fits together.
Build with Kapten
Start with one service.
Build from there.
Tell us what you want to deploy. We review each request and follow up about fit and onboarding on your preferred cloud.
Free during early access. No card required. Cloud usage billed separately.