Skip to content

Commit

Permalink
Use an experimental feature to avoid setting the max-pods nodepool at…
Browse files Browse the repository at this point in the history
…tribute
  • Loading branch information
angelbarrera92 committed Sep 20, 2021
1 parent 25cc378 commit 8f4f1e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions example/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
terraform {
required_version = "0.15.4"
}

variable "cluster_name" {}
variable "cluster_version" {}
variable "network" {}
Expand Down
2 changes: 1 addition & 1 deletion example/my-cluster.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node_pools = [
tags : {
"node-tags" : "exists"
}
max_pods : null # To use default EKS setting
# max_pods : null # To use default EKS setting set it to null or do not set it
},
{
name : "t3-node-pool"
Expand Down
2 changes: 1 addition & 1 deletion modules/eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ variable "node_pools" {
max_size = number
instance_type = string
os = optional(string)
max_pods = number # null to use default upstream configuration
max_pods = optional(number) # null to use default upstream configuration
volume_size = number
subnetworks = list(string) # null to use default upstream configuration
labels = map(string)
Expand Down

0 comments on commit 8f4f1e5

Please sign in to comment.