Skip to content

Commit

Permalink
fix: set min nonSpotWeight to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
omBratteng committed Nov 14, 2024
1 parent 7631b4d commit b6d12a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/k8s.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export const getSpotSettings = (

if (spot?.enabled && !isAdhocEnv) {
const spotWeight = spot?.weight ?? defaultSpotWeight;
const nonSpotWeight = Math.max(0, 100 - spotWeight);
const nonSpotWeight = Math.max(1, 100 - spotWeight);
tolerations.push({
key: 'spot',
operator: 'Equal',
Expand Down

0 comments on commit b6d12a3

Please sign in to comment.