-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathamd-load.yaml
47 lines (47 loc) · 1.1 KB
/
amd-load.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
46
47
apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
name: amd-load
spec:
template:
spec:
requirements:
- key: kubernetes.io/arch
operator: In
values: ["amd64"]
- key: karpenter.k8s.aws/instance-family
operator: In
values: ["m5"]
- key: karpenter.k8s.aws/instance-size
operator: In
values: ["large"]
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
nodeClassRef:
name: amd-load
limits:
cpu: 1000
disruption:
consolidationPolicy: WhenUnderutilized
expireAfter: 720h # 30 * 24h = 720h
---
apiVersion: karpenter.k8s.aws/v1beta1
kind: EC2NodeClass
metadata:
name: amd-load
spec:
amiFamily: AL2 # Amazon Linux 2
role: "KarpenterNodeRole-kub316"
subnetSelectorTerms:
- tags:
karpenter.sh/discovery: "kub316"
securityGroupSelectorTerms:
- tags:
karpenter.sh/discovery: "kub316"
blockDeviceMappings:
- deviceName: /dev/xvda
ebs:
volumeSize: 300Gi
volumeType: gp3
encrypted: true