-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnodepool.yaml
45 lines (45 loc) · 1.12 KB
/
nodepool.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
name: sciety
spec:
template:
metadata:
labels:
Cluster: "${cluster_name}"
Project: "${team_name}"
elifesciences.org/project: "${team_name}"
type: karpenter
spec:
expireAfter: 720h # 30 * 24h = 720h
nodeClassRef:
group: karpenter.k8s.aws
kind: EC2NodeClass
name: sciety
taints:
- key: project
value: "${team_name}"
effect: NoSchedule
requirements:
- key: kubernetes.io/os
operator: In
values: ["linux"]
- key: karpenter.sh/capacity-type
operator: In
values: ["spot"]
- key: karpenter.k8s.aws/instance-category
operator: In
values: ["m", "c", "r", "t"]
- key: karpenter.k8s.aws/instance-hypervisor
operator: In
values: ["nitro"]
- key: "kubernetes.io/arch"
operator: In
values: ["amd64"]
limits:
cpu: 1000
disruption:
consolidateAfter: "0s"
consolidationPolicy: WhenEmptyOrUnderutilized
budgets:
- nodes: "1"