-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheks.tf
37 lines (34 loc) · 1.14 KB
/
eks.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module "eks" {
source = "terraform-aws-modules/eks/aws"
version = "~> 18.20"
cluster_name = var.cluster_name
cluster_version = "1.22"
subnet_ids = module.vpc.private_subnets
vpc_id = module.vpc.vpc_id
eks_managed_node_groups = {
ng1 = {
## keep demo cheap: default type is t3.small
# desired_capacity = 1
# max_capacity = 10
# min_capacity = 1
# instance_types = ["m5.large"]
metadata_http_put_response_hop_limit = 2
}
ng2 = {
metadata_http_put_response_hop_limit = 2
}
# ng3 = {
# metadata_http_put_response_hop_limit = 2
# }
}
node_security_group_additional_rules = {
ingress_allow_access_from_control_plane = {
type = "ingress"
protocol = "tcp"
from_port = 9443
to_port = 9443
source_cluster_security_group = true
description = "Allow access from control plane to webhook port of AWS load balancer controller"
}
}
}