Skip to content

Commit e6ae93b

Browse files
committed
fix: revert to simpler disk_size --> 80GB fix
1 parent 85f6969 commit e6ae93b

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

terraform/nodes.tf

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,6 @@ resource "aws_iam_instance_profile" "karpenter_node" {
7070
role = aws_iam_role.karpenter_node.name
7171
}
7272

73-
resource "aws_launch_template" "core_nodes" {
74-
name_prefix = "${local.cluster_prefix}-core-"
75-
76-
block_device_mappings {
77-
device_name = "/dev/xvda"
78-
ebs {
79-
volume_size = 80
80-
volume_type = "gp3"
81-
}
82-
}
83-
84-
lifecycle {
85-
create_before_destroy = true
86-
}
87-
}
88-
8973
resource "aws_eks_node_group" "core_nodes" {
9074
cluster_name = aws_eks_cluster.cluster.name
9175
node_group_name = "core"
@@ -97,10 +81,7 @@ resource "aws_eks_node_group" "core_nodes" {
9781

9882
capacity_type = var.capacity_type
9983

100-
launch_template {
101-
id = aws_launch_template.core_nodes.id
102-
version = aws_launch_template.core_nodes.latest_version
103-
}
84+
disk_size = 80
10485

10586
scaling_config {
10687
desired_size = 1

0 commit comments

Comments
 (0)