Consolidation with spot by default is not appropriate #1605
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
Observed Behavior:
From :
karpenter/pkg/controllers/disruption/consolidation.go
Lines 192 to 205 in 372b9c8
Karpenter will set nodeclaim's
CapacityType
withspot
if reqs allowCapacityType
with[OD, spot]
.This logic will let karpenter always creates
spot
machine, even the cheapest machine isOD
but not thespot
one.And the worst case is that there is no
spot
machine avaliabel, the karpenter wiill report err:Since the created nodeclaim has reqs with 'spot', the consolidation will not sucess even we have cheaper
OD
machine.Expected Behavior:
What I expected in consolidation is that:
Do not modify the
CapacityType
, just choose the chpeast machine if my reqs has ignore the capacity type.The text was updated successfully, but these errors were encountered: