You want to run production workloads on Spot. How do you do it safely?

AdvancedScenarioCost
Answer

Situation read → Spot gives up to 90% off but can be reclaimed with a 2-minute warning. Safe use is about spreading risk and handling interruptions gracefully.

What I'd do →

  1. Only stateless, horizontally scaled services that tolerate losing a pod. Keep databases, Kafka and singletons on on-demand.
  2. Diversify: many instance families and sizes across all AZs, so one pool being reclaimed doesn't hit everything.
requirements:
  - key: karpenter.sh/capacity-type
    operator: In
    values: ["spot", "on-demand"]
  - key: karpenter.k8s.aws/instance-category
    operator: In
    values: ["c", "m", "r"]
  1. Handle interruptions: Karpenter's interruption queue (or AWS Node Termination Handler) cordons and drains on the 2-minute notice.
  2. Make pods shut down fast: honour SIGTERM, keep terminationGracePeriodSeconds under ~90s, and use PDBs.
  3. Keep an on-demand base (for example 30%) so a mass reclaim never drops you below safe capacity.

Why → Diversity plus a fast, graceful drain is what makes Spot boring in production.

Interview tip → Mention the 2-minute notice and that your shutdown must fit inside it.

All Real-World Interview questions Roadmap: Interview readiness

More on Cost