Skip to content

Commit 2ac00a8

Browse files
authored
Merge pull request #198 from tablexi/add_storage
ADD ability to set EKS node disk size
2 parents c7dbcda + 12b5301 commit 2ac00a8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

aws/eks/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ resource "aws_iam_role_policy_attachment" "nodes-AmazonEC2ContainerRegistryReadO
148148
resource "aws_eks_node_group" "default" {
149149
cluster_name = var.name
150150
instance_types = [var.instance_type]
151+
disk_size = var.disk_size
151152
node_group_name = "default"
152153
node_role_arn = aws_iam_role.nodes.arn
153154

aws/eks/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ variable "ec2_ssh_key" {
2424
type = string
2525
}
2626

27+
variable "disk_size" {
28+
default = 20
29+
description = "Node disk size in GB"
30+
type = number
31+
}
32+
2733
variable "instance_type" {
2834
default = "t3.medium"
2935
}

0 commit comments

Comments
 (0)