---
title: "Spin-Up, Test, Tear-Down: How trivago Runs 600+ Preview Environments on Kubernetes"
description: "trivago runs 600+ per-pull-request preview environments on GKE that sit at zero replicas most of the time, using ArgoCD ApplicationSets with a pull-request generator for lifecycle and the KEDA HTTP add-on's interceptor proxy to hold requests while a deployment scales from zero."
url: "https://swe.quest/articles/spin-up-test-tear-down-how-trivago-runs-600-preview-environments-on-kubernetes-05cd513386944763"
canonical: "https://tech.trivago.com/post/2026-10-20-spin-up-test-tear-down-how-trivago-runs-600-preview-environments-on-kubernetes/"
source: "trivago tech"
published: "2026-10-20"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["kubernetes","deployment","cost-optimization","testing","ci-cd"]
---

# Spin-Up, Test, Tear-Down: How trivago Runs 600+ Preview Environments on Kubernetes

A post on [trivago tech](https://swe.quest/sources/trivago.md), published 2026-10-20, 13 min read, Case study. Original: [https://tech.trivago.com/post/2026-10-20-spin-up-test-tear-down-how-trivago-runs-600-preview-environments-on-kubernetes/](https://tech.trivago.com/post/2026-10-20-spin-up-test-tear-down-how-trivago-runs-600-preview-environments-on-kubernetes/)

## Summary

trivago runs 600+ per-pull-request preview environments on GKE that sit at zero replicas most of the time, using ArgoCD ApplicationSets with a pull-request generator for lifecycle and the KEDA HTTP add-on's interceptor proxy to hold requests while a deployment scales from zero. Only the changed service is deployed, with dependencies resolving to staging. Knative was rejected because of its separate workload model, healthy-only routing and single-ingress limit. After a crash-on-boot commit shipped behind green integration tests, because rolling updates kept the old pod serving, each preview got a second commit-SHA URL routed via Istio subsets directly to that commit's pods, and integration tests now run against it.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- Kubernetes deployments and services ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- GitOps with ArgoCD ([easy posts on Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md?difficulty=easy))
- Istio routing basics ([easy posts on Maps & geospatial](https://swe.quest/tags/geospatial.md?difficulty=easy))
- Horizontal Pod Autoscaler

## Keywords

KEDA HTTP add-on, ArgoCD ApplicationSet, Istio, Knative, GKE, Cloud Run, Helm, GitHub Actions

## Related posts

- [Preview Environments using Neon, Kubernetes, and Argo CD](https://swe.quest/articles/preview-environments-using-neon-kubernetes-and-argo-cd-10c042240d5ec5fe.md): Neon · 2023-11-28 · Medium · 9 min read · Deployment, Kubernetes, CI/CD, PostgreSQL, Infrastructure as code
  Per-pull-request preview environments can be built by pairing Neon's copy-on-write Postgres branches with an Argo CD ApplicationSet using the pullRequest generator, which deploys a Helm chart into a namespace per PR.
- [The Best Continuous Deployment Tools in 2026](https://swe.quest/articles/the-best-continuous-deployment-tools-in-2026-3e1552c8fc979e44.md): Railway · 2026-05-27 · Easy · 13 min read · Deployment, CI/CD, Kubernetes
  Continuous Deployment is distinct from CI: it covers moving a green artifact into production via rollout strategies, traffic shifting, automated rollback, feature-flag integration, environment promotion and observability hooks, and a tool missing three or more of these is just a script runner.
- [Deploy autoscaling services, AI Workflow automation, and LLM APIs Without Kubernetes](https://swe.quest/articles/deploy-autoscaling-services-ai-workflow-automation-and-llm-apis-without-89990f29298b2ab4.md): Railway · 2025-12-19 · Medium · 15 min read · Kubernetes, Deployment, Containers, CI/CD, Cloud platforms
  Many teams adopting Kubernetes only need to build containers, expose endpoints, scale and observe services, and a managed container platform like Railway can cover those needs with far less operational overhead.
- [How Wise bootstraps Spinnaker using ArgoCD](https://swe.quest/articles/how-wise-bootstraps-spinnaker-using-argocd-2cfdda8463ccd448.md): Wise Engineering · 2023-02-20 · Medium · 7 min read · Deployment, Kubernetes, Infrastructure as code, Cryptography, CI/CD
  Wise installs and manages both its staging and production Spinnaker instances with ArgoCD, using the App of Apps pattern and Kustomize to deploy the Spinnaker Operator and SpinnakerService manifests.
- [September 29 Outage Incident Report: What we learnt](https://swe.quest/articles/september-29-outage-incident-report-what-we-learnt-224e248e50621624.md): Spotify Engineering · 2026-11-27 · Medium · 4 min read · Incidents & postmortems, Deployment, Kubernetes, Resilience, Observability
  Two independently tested deployment-system changes conflicted, causing Argo CD to repeatedly overwrite autoscaler-managed minReplicas for services that used Argo Rollouts and had test environments.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
