computeClass: Spot.
Key characteristics
- Availability: Capacity for Spot Node Pools is not guaranteed and depends on current availability in the region.
- Preemptible: Unlike instances in on-demand Node Pools, CoreWeave can reclaim instances in Spot Node Pools at any time if the capacity is required elsewhere.
- Automatic scaling: When all instances are preempted, the Spot Node Pool remains active and automatically scales back up when capacity becomes available again.
Availability
Spot Node Pools are supported in all General Access Availability Zones, and for all instance types except Superchip-powered instances (for example, GH200, GB200, GB300).Check Spot capacity before you provision
Spot capacity is not guaranteed and varies by Availability Zone. Before you create a Spot Node Pool, use Capacity Finder in the Cloud Console to compare placement availability across Zones for your requested instance type and Node count. Capacity Finder can also pre-fill a Spot Node Pool from a recommended Zone.Create a Spot Node Pool
Create a Spot Node Pool by setting thecomputeClass field to spot in your Node Pool configuration in either a Kubernetes manifest or the Cloud Console. See Create a Node Pool for more information.
Use Kubernetes
To create a Spot Node Pool using Kubernetes, set thespec.computeClass field to spot in your Node Pool manifest.
Use the Cloud Console
To create a Spot Node Pool using the Cloud Console, set the Compute Class tospot in the configuration settings.
- Navigate to the Node Pools dashboard.
- Click Create Node Pool.
- In the configuration settings, enter
spotas the Compute Class string (spec.computeClass).
Instance preemption
Because instances in Spot Node Pools are preemptible, CoreWeave may reclaim them when capacity is needed elsewhere. When this happens, a controlled preemption process removes instances from the pool. When CoreWeave selects an instance for preemption, the process provides a seven-minute window (maximum) to gracefully stop running jobs and save state before the instance leaves the pool. The following timeline describes each phase of that window and the signals your workloads receive at each stage.Detailed timeline
Warning and cordon (T=0:00)
When CoreWeave designates an instance for preemption, it immediately cordons the Node to prevent scheduling new jobs. Running jobs continue executing normally at this stage. The system sends a Kubernetes warning event with the reasonPreemption pending and applies the label qos.coreweave.cloud/pending-preemption: true to the Node. This is your application’s initial signal that preemption is imminent.
Drain and signal (T=0:02)
Two minutes after the initial warning, CoreWeave automatically initiates a Node drain to terminate workloads. The system sends another Kubernetes warning event with the reasonPreemption in progress and applies the label qos.coreweave.cloud/evicted-at: [timestamp] to track when the drain started. At this point the normal Kubernetes Pod termination process starts.
- Kubernetes triggers any Pod PreStop lifecycle hooks.
- Kubernetes sends a Linux
SIGTERMsignal to all running processes to indicate that the Pod is terminating. This gives processes an opportunity to perform graceful shutdown procedures that the PreStop lifecycle hooks didn’t trigger. - The system waits for 30 seconds, or the length of time specified in the Pod’s
terminationGracePeriodSeconds. - After the grace period, Kubernetes sends a
SIGKILLsignal to any remaining running processes in the Pod. Processes can’t catch or ignore this signal, and the receiving process can’t perform any cleanup. The process terminates immediately.
Removal from pool (T=0:07)
When the Node fully drains or when the seven-minute window expires (whichever comes first), CoreWeave removes the instance from your cluster and Spot Node Pool. The system sends a final Kubernetes warning event with the reasonDeleted for preemption to confirm the removal is complete.
Sequence diagram
Fully preempted Spot Node Pools
If all instances in a Spot Node Pool are preempted, the pool itself remains active but effectively scales to zero instances. The Spot Node Pool continues to exist in your cluster configuration and automatically attempts to provision new instances when capacity becomes available again in the region. Your workloads remain in a pending state until instances rejoin the pool.Handle preemption events
Your application must handle preemption events gracefully and tolerate preemption without causing data loss or downtime. If your application doesn’t natively handleSIGTERM signals for graceful shutdown, use a Kubernetes PreStop hook in your Pod definition to trigger the necessary cleanup steps before the container terminates.
Monitor preemption events
You can watch for preemption warnings usingkubectl events: