Kapten

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.

One environment per pull request
  • #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.
Each preview is an environment your CI creates when the pull request opens and deletes when it closes. Kapten bills it by the minute.Illustrative · CI-driven lifecycle, sample branches
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.

    Isolation
  • Without: Reviews run against a copy of production data.

    With Kapten: Seeded fixtures and preview-only secrets.

    Secrets
  • Without: Reviewers test the API without the worker it calls.

    With Kapten: A preview shape with every service the change needs.

    Architecture
  • Without: 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.

  1. 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.

  2. 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.

  3. 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.

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.