Skip to content

Commit bf9121f

Browse files
committed
chore: Update Karpenter example to simplify
1 parent bad85bf commit bf9121f

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

examples/karpenter/main.tf

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,6 @@ module "eks" {
9595
min_size = 2
9696
max_size = 3
9797
desired_size = 2
98-
99-
taints = {
100-
# This Taint aims to keep just EKS Addons and Karpenter running on this MNG
101-
# The pods that do not tolerate this taint should run on nodes created by Karpenter
102-
addons = {
103-
key = "CriticalAddonsOnly"
104-
value = "true"
105-
effect = "NO_SCHEDULE"
106-
},
107-
}
10898
}
10999
}
110100

@@ -164,17 +154,18 @@ resource "helm_release" "karpenter" {
164154
repository_username = data.aws_ecrpublic_authorization_token.token.user_name
165155
repository_password = data.aws_ecrpublic_authorization_token.token.password
166156
chart = "karpenter"
167-
version = "1.0.6"
157+
version = "1.1.0"
168158
wait = false
169159

170160
values = [
171161
<<-EOT
172-
serviceAccount:
173-
name: ${module.karpenter.service_account}
162+
dnsPolicy: Default
174163
settings:
175164
clusterName: ${module.eks.cluster_name}
176165
clusterEndpoint: ${module.eks.cluster_endpoint}
177166
interruptionQueue: ${module.karpenter.queue_name}
167+
webhook:
168+
enabled: false
178169
EOT
179170
]
180171
}
@@ -226,7 +217,7 @@ resource "kubectl_manifest" "karpenter_node_pool" {
226217
values: ["nitro"]
227218
- key: "karpenter.k8s.aws/instance-generation"
228219
operator: Gt
229-
values: ["2"]
220+
values: ["5"]
230221
limits:
231222
cpu: 1000
232223
disruption:

0 commit comments

Comments
 (0)