Skip to content

Commit fd86a0e

Browse files
author
nadav buchman
committed
fix amiselectorTerms is now required
1 parent 60d2271 commit fd86a0e

File tree

4 files changed

+38
-12
lines changed

4 files changed

+38
-12
lines changed

charts/karpenter_nodes/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: karpenter_nodes
3-
version: 1.1.2
3+
version: 1.1.3
44
description: A Helm chart for generating NodeClasses and NodePools for Karpenter
55
maintainers:
66
- name: nadavbuc

charts/karpenter_nodes/examples/argocd_example.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
sources:
1010
- repoURL: 'https://opensource.fiverr.com/public_charts/'
1111
chart: karpenter_nodes
12-
targetRevision: 1.1.0
12+
targetRevision: 1.1.3
1313
helm:
1414
valueFiles:
1515
- $values/karpenter_nodes/eks-dev/common.yaml

charts/karpenter_nodes/examples/output/output.yaml

+34-10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ spec:
1717
role: eks_nodes_role
1818
amiFamily: AL2
1919
amiSelectorTerms:
20+
- alias: al2@latest
2021
subnetSelectorTerms:
2122
- tags:
2223
Name: eks-dev-eu-west-1a
@@ -150,6 +151,7 @@ spec:
150151
role: eks_nodes_role
151152
amiFamily: AL2
152153
amiSelectorTerms:
154+
- alias: al2@latest
153155
subnetSelectorTerms:
154156
- tags:
155157
Name: eks-dev-eu-west-1a
@@ -283,6 +285,7 @@ spec:
283285
role: eks_nodes_role
284286
amiFamily: AL2
285287
amiSelectorTerms:
288+
- alias: al2@latest
286289
subnetSelectorTerms:
287290
- tags:
288291
Name: eks-dev-eu-west-1a
@@ -416,6 +419,7 @@ spec:
416419
role: eks_nodes_role
417420
amiFamily: AL2
418421
amiSelectorTerms:
422+
- alias: al2@latest
419423
subnetSelectorTerms:
420424
- tags:
421425
Name: eks-dev-eu-west-1a
@@ -549,6 +553,7 @@ spec:
549553
role: eks_nodes_role
550554
amiFamily: AL2
551555
amiSelectorTerms:
556+
- alias: al2@latest
552557
subnetSelectorTerms:
553558
- tags:
554559
Name: eks-dev-eu-west-1a
@@ -675,6 +680,7 @@ spec:
675680
role: eks_nodes_role
676681
amiFamily: AL2
677682
amiSelectorTerms:
683+
- alias: al2@latest
678684
subnetSelectorTerms:
679685
- tags:
680686
Name: eks-dev-eu-west-1a
@@ -808,6 +814,7 @@ spec:
808814
role: eks_nodes_role
809815
amiFamily: AL2
810816
amiSelectorTerms:
817+
- alias: al2@latest
811818
subnetSelectorTerms:
812819
- tags:
813820
Name: eks-dev-eu-west-1a
@@ -942,6 +949,7 @@ spec:
942949
role: eks_nodes_role
943950
amiFamily: AL2
944951
amiSelectorTerms:
952+
- alias: al2@latest
945953
subnetSelectorTerms:
946954
- tags:
947955
Name: eks-dev-eu-west-1a
@@ -1080,6 +1088,8 @@ spec:
10801088
spec:
10811089
nodeClassRef:
10821090
name: nodes-canary-amd64
1091+
apiVersion: karpenter.sh/v1
1092+
kind: EC2NodeClass
10831093
taints:
10841094
- key: dedicated
10851095
effect: NoSchedule
@@ -1150,8 +1160,8 @@ spec:
11501160
- "3"
11511161
- "4"
11521162
- "5"
1163+
expireAfter: 720h
11531164
disruption:
1154-
expireAfter: 720h
11551165
consolidationPolicy: WhenEmptyOrUnderutilized
11561166
weight: 1
11571167
---
@@ -1169,6 +1179,8 @@ spec:
11691179
spec:
11701180
nodeClassRef:
11711181
name: nodes-cilium-managed-amd64
1182+
apiVersion: karpenter.sh/v1
1183+
kind: EC2NodeClass
11721184
taints:
11731185
- key: dedicated
11741186
effect: NoSchedule
@@ -1235,8 +1247,8 @@ spec:
12351247
operator: NotIn
12361248
values:
12371249
- metal
1250+
expireAfter: 720h
12381251
disruption:
1239-
expireAfter: 720h
12401252
consolidationPolicy: WhenEmptyOrUnderutilized
12411253
weight: 1
12421254
---
@@ -1254,6 +1266,8 @@ spec:
12541266
spec:
12551267
nodeClassRef:
12561268
name: nodes-default-amd64
1269+
apiVersion: karpenter.sh/v1
1270+
kind: EC2NodeClass
12571271
requirements:
12581272
- key: "karpenter.k8s.aws/instance-category"
12591273
operator: In
@@ -1319,8 +1333,8 @@ spec:
13191333
- "3"
13201334
- "4"
13211335
- "5"
1336+
expireAfter: 720h
13221337
disruption:
1323-
expireAfter: 720h
13241338
consolidationPolicy: WhenEmptyOrUnderutilized
13251339
weight: 2
13261340
---
@@ -1399,8 +1413,8 @@ spec:
13991413
operator: In
14001414
values:
14011415
- "6"
1416+
expireAfter: 720h
14021417
disruption:
1403-
expireAfter: 720h
14041418
consolidationPolicy: WhenEmptyOrUnderutilized
14051419
weight: 1
14061420
---
@@ -1419,6 +1433,8 @@ spec:
14191433
spec:
14201434
nodeClassRef:
14211435
name: nodes-gpu-amd64
1436+
apiVersion: karpenter.sh/v1
1437+
kind: EC2NodeClass
14221438
taints:
14231439
- key: dedicated
14241440
effect: NoSchedule
@@ -1470,8 +1486,8 @@ spec:
14701486
- g5.xlarge
14711487
- g5.2xlarge
14721488
- g5.4xlarge
1489+
expireAfter: 720h
14731490
disruption:
1474-
expireAfter: 720h
14751491
consolidationPolicy: WhenEmptyOrUnderutilized
14761492
limits:
14771493
cpu: 128
@@ -1491,6 +1507,8 @@ spec:
14911507
spec:
14921508
nodeClassRef:
14931509
name: nodes-ingress-multiarch
1510+
apiVersion: karpenter.sh/v1
1511+
kind: EC2NodeClass
14941512
taints:
14951513
- key: dedicated
14961514
effect: NoSchedule
@@ -1548,8 +1566,8 @@ spec:
15481566
operator: NotIn
15491567
values:
15501568
- metal
1569+
expireAfter: Never
15511570
disruption:
1552-
expireAfter: Never
15531571
consolidationPolicy: WhenEmptyOrUnderutilized
15541572
weight: 1
15551573
---
@@ -1567,6 +1585,8 @@ spec:
15671585
spec:
15681586
nodeClassRef:
15691587
name: nodes-jobs-amd64
1588+
apiVersion: karpenter.sh/v1
1589+
kind: EC2NodeClass
15701590
taints:
15711591
- key: dedicated
15721592
effect: NoSchedule
@@ -1624,8 +1644,8 @@ spec:
16241644
operator: NotIn
16251645
values:
16261646
- metal
1647+
expireAfter: Never
16271648
disruption:
1628-
expireAfter: Never
16291649
consolidationPolicy: WhenEmpty
16301650
consolidateAfter: 5m
16311651
weight: 1
@@ -1645,6 +1665,8 @@ spec:
16451665
spec:
16461666
nodeClassRef:
16471667
name: nodes-monitoring-multiarch
1668+
apiVersion: karpenter.sh/v1
1669+
kind: EC2NodeClass
16481670
taints:
16491671
- key: dedicated
16501672
effect: NoSchedule
@@ -1696,8 +1718,8 @@ spec:
16961718
operator: NotIn
16971719
values:
16981720
- metal
1721+
expireAfter: Never
16991722
disruption:
1700-
expireAfter: Never
17011723
consolidationPolicy: WhenEmptyOrUnderutilized
17021724
weight: 1
17031725
---
@@ -1715,6 +1737,8 @@ spec:
17151737
spec:
17161738
nodeClassRef:
17171739
name: nodes-workers-amd64
1740+
apiVersion: karpenter.sh/v1
1741+
kind: EC2NodeClass
17181742
taints:
17191743
- key: dedicated
17201744
effect: NoSchedule
@@ -1784,8 +1808,8 @@ spec:
17841808
- "3"
17851809
- "4"
17861810
- "5"
1811+
expireAfter: 720h
17871812
disruption:
1788-
expireAfter: 720h
17891813
consolidationPolicy: WhenEmptyOrUnderutilized
17901814
weight: 2
17911815
---
@@ -1871,7 +1895,7 @@ spec:
18711895
- "3"
18721896
- "4"
18731897
- "5"
1898+
expireAfter: 720h
18741899
disruption:
1875-
expireAfter: 720h
18761900
consolidationPolicy: WhenEmptyOrUnderutilized
18771901
weight: 1

charts/karpenter_nodes/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ApiVersion: v1
66
# Nodes Configuration
77
clusterName: "eks-cluster" # My Cluster Name
88
amiFamily: AL2 # Bottlerocket #AL2023, Can be overridden by amiSelectorTerms
9+
amiSelectorTerms:
10+
- alias: al2@latest
911
IamRole: eks_nodes_role
1012

1113
subnetSelectorTerms: []

0 commit comments

Comments
 (0)