Spin-Up, Test, Tear-Down: How trivago Runs 600+ Preview Environments on Kubernetes
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.
Related posts
- Preview Environments using Neon, Kubernetes, and Argo CD
Neon mediumAdept
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. A GitHub Actions workflow builds and pushes the container image, creates a Neon branch and compute via create-branch-action, then uses the argocd CLI to set the database URL and image tag on the PR's Application. It also comments the preview URL on the PR. Setting these parameters imperatively departs from strict GitOps but is a pragmatic tradeoff when values aren't known ahead of time.
- The Best Continuous Deployment Tools in 2026
Railway easyNoviceContinuous 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. Ten CD options are ranked against that checklist, including Railway, Argo CD, Spinnaker, Vercel, Flux, Octopus Deploy, Harness, Render and Heroku Pipelines, with features, pricing and tradeoffs for each. Many teams already get CD from their PaaS and don't need Kubernetes GitOps tooling. Heavier platforms like Spinnaker or Harness pay off only when multi-cloud canary analysis or percentage-based traffic shifting is actually required. The author works at Railway and ranks it first, noting it lacks native percentage-based canaries.
- Deploy autoscaling services, AI Workflow automation, and LLM APIs Without Kubernetes
Railway mediumAdeptMany 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. Each Kubernetes building block is mapped to a platform feature: Ingress plus cert-manager becomes automatic TLS and private hostnames, Secrets become reference variables that propagate on rotation, CI/CD plus ArgoCD becomes git-push deploys with PR preview environments, and the HPA metrics stack becomes dashboard-set replicas. The tradeoff is lost control over scheduling, custom readiness probes and custom scaling metrics, which still justifies Kubernetes at larger scale.
- How Wise bootstraps Spinnaker using ArgoCD
Wise Engineering mediumAdeptWise 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. They chose this over the common approach of having a staging Spinnaker manage production, which raised security concerns. Internal mTLS between Spinnaker's Java microservices is fully automated: cert-manager issues a self-signed CA and service certificates, trust-manager distributes the CA bundle, and init containers run keytool to merge it into the Java trust store, so engineers never handle keys. Upgrades go through Git: forked service images plus a Bill of Materials in versioned object storage, then a bumped version string that ArgoCD reconciles.
- September 29 Outage Incident Report: What we learnt
Spotify Engineering mediumAdeptTwo 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. This downscaled a critical login service, and recovery was further slowed by a token-reissuing thundering herd that overwhelmed remaining instances and downstream services. Most regions recovered by 16:30 UTC, but one European region took until 19:34 UTC. The reported fixes focus on preventing deployment automation from overwriting autoscaler replica counts, strengthening downscaling safeguards, simplifying emergency controls, and improving overload and traffic-restoration behavior.