mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-22 01:19:05 +01:00
Support creating multiple worker auto scaling groups, similar to KOPS
This commit is contained in:
35
variables.tf
35
variables.tf
@@ -46,27 +46,18 @@ variable "vpc_id" {
|
||||
description = "VPC id where the cluster and other resources will be deployed."
|
||||
}
|
||||
|
||||
variable "workers_ami_id" {
|
||||
description = "AMI ID for the eks workers. If none is provided, Terraform will search for the latest version of their EKS optimized worker AMI."
|
||||
default = ""
|
||||
}
|
||||
variable "worker_groups" {
|
||||
description = "A list of maps defining worker group configurations."
|
||||
type = "list"
|
||||
|
||||
variable "workers_asg_desired_capacity" {
|
||||
description = "Desired worker capacity in the autoscaling group."
|
||||
default = "1"
|
||||
}
|
||||
|
||||
variable "workers_asg_max_size" {
|
||||
description = "Maximum worker capacity in the autoscaling group."
|
||||
default = "3"
|
||||
}
|
||||
|
||||
variable "workers_asg_min_size" {
|
||||
description = "Minimum worker capacity in the autoscaling group."
|
||||
default = "1"
|
||||
}
|
||||
|
||||
variable "workers_instance_type" {
|
||||
description = "Size of the workers instances."
|
||||
default = "m4.large"
|
||||
default = [
|
||||
{
|
||||
name = "nodes" # Name of the worker group.
|
||||
ami_id = "" # AMI ID for the eks workers. If none is provided, Terraform will search for the latest version of their EKS optimized worker AMI.
|
||||
asg_desired_capacity = "1" # Desired worker capacity in the autoscaling group.
|
||||
asg_max_size = "3" # Maximum worker capacity in the autoscaling group.
|
||||
asg_min_size = "1" # Minimum worker capacity in the autoscaling group.
|
||||
instance_type = "m4.large" # Size of the workers instances.
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user