![]() |
VOOZH | about |
Kubernetes preview environments are on-demand deployments of a branch or PR that you want to test and preview. Here's why they're important.
by Shipyard Team on Mar 17, 2025
Kubernetes preview environments grant developers access to their WIP features in a production-like state early on in the deployment pipeline. Here’s a 30,000-foot view on what they are, how they’re used, and why they’re important.
Kubernetes preview environments are on-demand deployments of a branch or PR that you want to test and preview. They use similar services and data to production, so you can run end-to-end tests against them, and get a real sense for how your code changes will fare in production.
Ideally, these preview environments spin up when a PR is opened, and use GitOps to update on code changes to reflect your SSOT repository.
Kubernetes preview environments are a step up from your local dev environment or your CDE. They’re built from your latest code changes, so you can preview a WIP feature alongside all services, integrations, and data. They solve the “but it works on my machine” problem: getting something off of your machine and onto your real prod-like infrastructure is less of a lift.
This opens a lot of doors, especially earlier on in your deployment lifecycle. Some of the most obvious benefits are:
The workflow around a Kubernetes preview environment is pretty intuitive. These environments respond to your development flow automatically (thanks to GitOps). That way, they improve DevEx; they don’t add to your cognitive load or create unnecessary steps, they just respond to your repo events. DORA research found that teams with on demand self-service, or ability to provision infrastructure on their own, tend to perform better and have lower frustration.
Usually, the workflow goes like this:
Having the Kubernetes preview environment in play makes this loop shorter, since it happens earlier on in (and even during) feature development.
Preview environments are most valuable when they’re built to fulfill a few QoL requirements. Without those principles guiding their design, they can detract from your DevEx and may be just another tool for engineers to learn.
At minimum, preview environments are best served by:
TLDR: they make development, testing, and deployment easier.
Engineering managers like to optimize for developer experience (DevEx). They want to make life easier for developers through tooling and processes, so that devs can get in “flow” and produce high-quality software. DevEx usually results in more reliable software (fewer outages/rollbacks/bugs), and more frequent deployments.
Good DevEx takes a lot of separate steps to achieve. You’ll need to find ways that your developers are negatively impacted/inconvenienced, and solve for those. This might mean adopting new tools, dealing with tech debt, catching up on docs, conducting surveys, or hiring DevEx engineers.
Kubernetes preview environments cover a lot of ground when it comes to solving for DevEx. They help developers get feedback (product, design, testing, performance, etc.) without infrastructure delays. They also act as a staging environment before the staging environment; sometimes it can be nearly impossible to catch certain performance issues until staging, and k8s preview environments help fill in that gap*.*
Teams benefit from the independence they gain from preview environments, and managers are happier knowing that their DORA metrics are improving and their developers are more satisfied with their day-to-day.
If you’re looking for an all-in-one managed Kubernetes preview environment platform, you’re in luck. That’s what we do best — we automate the lifecycle of preview environments, taking your Docker Compose and transpiling it into best-practices Kubernetes. It’s as simple as opening a PR: Shipyard will drop a link to a full-stack preview environment ready for testing, previewing, and sharing. Give it a try for free and see for yourself!
AI agents help your team write code 2.5x faster. Don't let your infra hold you back.
Get full-stack, agent-ready environments on every pull request.
Hear about the latest and greatest in cloud native, agents, engineering, and more when you sign up for our monthly newsletter.