← Questions

Design a Kubernetes platform that runs and autoscales user apps

0
CoreWeaveSystem designLast asked Oct 2025

A system design interview question asked in CoreWeave's system design round, last asked Oct 2025. It tests kubernetes, autoscaling and platform.

Design a platform on Kubernetes where users upload their application runtimes and the platform runs them, scaling each app up and down with the load it receives. Expect to be asked why at every choice, so name the alternative you rejected each time.

Requirements

  • Functional: users upload an app (a container image or code the platform builds), get a URL, and see it scale automatically with traffic, including to zero when idle if that is supported. Users can update, roll back and delete apps.
  • Non-functional: many tenants on shared clusters kept apart from each other; scaling fast enough to absorb traffic spikes; high availability for running apps.

Clarifying questions

  • What do users upload: images, source code, or a runtime plus code?
  • Is scale to zero required, and how slow may a cold start be?
  • Are tenants trusted (one company's teams) or strangers?
  • Do apps need GPUs or only CPU?
  • What scale: how many apps, and how much traffic at peak?

What a strong answer covers

  • The path from upload to running: build or validate the image, store it in a registry, create a Deployment and Service (or a higher-level resource managed by an operator), and route traffic through an ingress or gateway.
  • Scaling signals and how fast they react: CPU and memory with the Horizontal Pod Autoscaler, request rate or queue depth for HTTP apps (KEDA or Knative-style), and cluster autoscaling for nodes.
  • Scale to zero: an activator that holds requests while the first pod starts, and the cold-start cost.
  • Tenant isolation: namespaces, resource quotas, network policies, and sandboxed runtimes (gVisor, Kata) or separate node pools for untrusted code.
  • Operations: rollouts and rollbacks, logs and metrics per app, and what happens when a node or a whole cluster fails.

Follow-ups

  • One tenant's app gets 100 times its usual traffic in a minute. What happens step by step?
  • How would you bill users for what they use?
  • How would you add GPU apps, where a cold start means loading a large model?

Where it's asked

What it tests

kubernetes · autoscaling · platform · multi-tenancy

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing