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

DevFeed: [Spin-Up, Test, Tear-Down: How trivago Runs 600+ Preview Environments on Kubernetes](<https://devfeed.tech/articles/spin-up-test-tear-down-how-trivago-runs-600-preview-environments-on-kubernetes-92575.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2026-10-20-spin-up-test-tear-down-how-trivago-runs-600-preview-environments-on-kubernetes/>)

Author: Armin Aminian SRE; Cloud Native technologies GitHub profile Linkedin profile

Published: 2026-10-20T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [signadot](<https://devfeed.tech/topics/signadot.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [Gke](<https://devfeed.tech/topics/gke.md>), [Helm charts](<https://devfeed.tech/topics/helm-charts.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [actions](<https://devfeed.tech/tags/actions.md>), [add-ons](<https://devfeed.tech/tags/add-ons.md>), [applicationset](<https://devfeed.tech/tags/applicationset.md>), [argocd](<https://devfeed.tech/tags/argocd.md>), [argocd-applicationset](<https://devfeed.tech/tags/argocd-applicationset.md>), [artifact-registry](<https://devfeed.tech/tags/artifact-registry.md>), [autoscaling](<https://devfeed.tech/tags/autoscaling.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [devops](<https://devfeed.tech/tags/devops.md>), [engineers](<https://devfeed.tech/tags/engineers.md>), [environments](<https://devfeed.tech/tags/environments.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [google](<https://devfeed.tech/tags/google.md>), [google-kubernetes-engine](<https://devfeed.tech/tags/google-kubernetes-engine.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [preview](<https://devfeed.tech/tags/preview.md>), [preview-environments](<https://devfeed.tech/tags/preview-environments.md>), [pull-requests](<https://devfeed.tech/tags/pull-requests.md>), [regions](<https://devfeed.tech/tags/regions.md>), [site-reliability-engineering](<https://devfeed.tech/tags/site-reliability-engineering.md>), [test](<https://devfeed.tech/tags/test.md>), [website](<https://devfeed.tech/tags/website.md>)

## AI overview

trivago runs 600+ Kubernetes preview environments that scale to zero while idle, avoiding the cost of always-on pods and unifying frontend and backend previews on one platform. A GitOps pipeline builds each pull request's changed service, stores its manifests, and uses ArgoCD to create and remove its environment; dependencies use staging instances. KEDA's HTTP add-on holds incoming requests while a zero-replica deployment starts, then forwards them, with a cooldown returning idle previews to zero. Each preview has a human-facing PR URL that wakes it and routes through the interceptor, plus a commit-specific URL that routes only to pods for that commit so tests detect startup failures hidden by Kubernetes rolling updates. The interceptor is critical request-path infrastructure; trivago uses a distribution that bypasses it and falls back to static replicas if it becomes unhealthy. The article says the cost benefit is avoided spend, not measured savings, since the always-on setup was never run.

## Source excerpt

At trivago, more than 200 engineers work on 100+ microservices running on Google Kubernetes Engine across three regions. At any given moment there are over 100 open pull requests on our website ...