Skip to content

Commit

Permalink
Setting api k8s to run on ondemand only (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben851 authored Dec 7, 2023
1 parent d8c5679 commit c433d73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
20 changes: 3 additions & 17 deletions env/production/node-selector-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,9 @@ metadata:
spec:
template:
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 90
preference:
matchExpressions:
- key: eks.amazonaws.com/capacityType
operator: In
values:
- ON_DEMAND
- weight: 10
preference:
matchExpressions:
- key: karpenter.sh/capacity-type
operator: In
values:
- spot
nodeSelector:
eks.amazonaws.com/capacityType: ON_DEMAND

---
### ON DEMAND (PRIMARY) NODES - ALWAYS AVAILABLE

Expand Down
19 changes: 2 additions & 17 deletions env/staging/node-selector-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,8 @@ metadata:
spec:
template:
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 90
preference:
matchExpressions:
- key: eks.amazonaws.com/capacityType
operator: In
values:
- ON_DEMAND
- weight: 10
preference:
matchExpressions:
- key: karpenter.sh/capacity-type
operator: In
values:
- spot
nodeSelector:
eks.amazonaws.com/capacityType: ON_DEMAND
---
### ON DEMAND (PRIMARY) NODES - ALWAYS AVAILABLE

Expand Down

0 comments on commit c433d73

Please sign in to comment.