Skip to content

Commit

Permalink
Control size of node pool with variables
Browse files Browse the repository at this point in the history
  • Loading branch information
eldada committed Jan 22, 2025
1 parent 3ba1e6d commit 8a044e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 5.aws-eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ module "eks" {
instance_types = ["t4g.small"]

min_size = 1
max_size = 3
desired_size = 1
max_size = var.pool_max_size
desired_size = var.pool_desired_size
}

# two = {
Expand Down
8 changes: 8 additions & 0 deletions 5.aws-eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ variable "cluster_public_access_cidrs" {
variable "cluster_name" {
default = "demo-eks-cluster"
}

variable "pool_max_size" {
default = 3
}

variable "pool_desired_size" {
default = 1
}

0 comments on commit 8a044e5

Please sign in to comment.