Originally published on Medium: https://medium.com/@seshikanthguduri/when-spot-nodes-eat-your-ci-pipeline-1bfc53a7f79b
Spot vs on-demand in EKS, provisioned by Karpenter: same cluster, two very different capacity promises.
Every platform team eventually learns the same lesson: spot instances are cheap right up until they are not.
The setup: all spot, all the time
We ran a busy Kubernetes CI workload on a node pool built entirely on spot capacity. It worked well for a long time, which is exactly the problem. Spot interruptions are rare enough that the risk stays invisible, until one day jobs start failing with errors that look like application problems. In our case the symptom was simple: jobs could not get a node. Pods sat unscheduled or died mid-run, and the error messages pointed everywhere except the real cause.
Figure 1 — How CI jobs flowed through the cluster: every job landed on spot capacity.
Read the flow left to right. A pipeline job becomes a pod. The scheduler looks for a node with room.…