mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-29 21:51:51 +02:00
add 'worker_group_count' to readme and example
This commit is contained in:
@@ -110,6 +110,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
|
|||||||
| subnets | A list of subnets to place the EKS cluster and workers within. | list | - | yes |
|
| subnets | A list of subnets to place the EKS cluster and workers within. | list | - | yes |
|
||||||
| tags | A map of tags to add to all resources. | map | `<map>` | no |
|
| tags | A map of tags to add to all resources. | map | `<map>` | no |
|
||||||
| vpc_id | VPC where the cluster and workers will be deployed. | string | - | yes |
|
| vpc_id | VPC where the cluster and workers will be deployed. | string | - | yes |
|
||||||
|
| worker_group_count | The number of maps contained within the worker_groups list. | string | `1` | no |
|
||||||
| worker_groups | A list of maps defining worker group configurations. See workers_group_defaults for valid keys. | list | `<list>` | no |
|
| worker_groups | A list of maps defining worker group configurations. See workers_group_defaults for valid keys. | list | `<list>` | no |
|
||||||
| worker_security_group_id | If provided, all workers will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the EKS cluster. | string | `` | no |
|
| worker_security_group_id | If provided, all workers will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the EKS cluster. | string | `` | no |
|
||||||
| worker_sg_ingress_from_port | Minimum port number from which pods will accept communication. Must be changed to a lower value if some pods in your cluster will expose a port lower than 1025 (e.g. 22, 80, or 443). | string | `1025` | no |
|
| worker_sg_ingress_from_port | Minimum port number from which pods will accept communication. Must be changed to a lower value if some pods in your cluster will expose a port lower than 1025 (e.g. 22, 80, or 443). | string | `1025` | no |
|
||||||
|
|||||||
@@ -24,12 +24,14 @@ locals {
|
|||||||
# "asg_min_size", "2",
|
# "asg_min_size", "2",
|
||||||
# "instance_type", "m4.xlarge",
|
# "instance_type", "m4.xlarge",
|
||||||
# "name", "worker_group_a",
|
# "name", "worker_group_a",
|
||||||
|
# "subnets", "${join(",", module.vpc.private_subnets)}",
|
||||||
# ),
|
# ),
|
||||||
# map("asg_desired_capacity", "1",
|
# map("asg_desired_capacity", "1",
|
||||||
# "asg_max_size", "5",
|
# "asg_max_size", "5",
|
||||||
# "asg_min_size", "1",
|
# "asg_min_size", "1",
|
||||||
# "instance_type", "m4.2xlarge",
|
# "instance_type", "m4.2xlarge",
|
||||||
# "name", "worker_group_b",
|
# "name", "worker_group_b",
|
||||||
|
# "subnets", "${join(",", module.vpc.private_subnets)}",
|
||||||
# ),
|
# ),
|
||||||
# )}"
|
# )}"
|
||||||
|
|
||||||
@@ -64,13 +66,14 @@ module "vpc" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
cluster_name = "${local.cluster_name}"
|
cluster_name = "${local.cluster_name}"
|
||||||
subnets = "${module.vpc.public_subnets}"
|
subnets = "${module.vpc.public_subnets}"
|
||||||
tags = "${local.tags}"
|
tags = "${local.tags}"
|
||||||
vpc_id = "${module.vpc.vpc_id}"
|
vpc_id = "${module.vpc.vpc_id}"
|
||||||
worker_groups = "${local.worker_groups}"
|
worker_groups = "${local.worker_groups}"
|
||||||
map_roles = "${var.map_roles}"
|
worker_group_count = "1"
|
||||||
map_users = "${var.map_users}"
|
map_roles = "${var.map_roles}"
|
||||||
map_accounts = "${var.map_accounts}"
|
map_users = "${var.map_users}"
|
||||||
|
map_accounts = "${var.map_accounts}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user