-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheks.tf
More file actions
36 lines (26 loc) · 798 Bytes
/
Copy patheks.tf
File metadata and controls
36 lines (26 loc) · 798 Bytes
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
module "eks" {
source = "terraform-aws-modules/eks/aws"
version = "~> 21.8"
name = var.cluster_name
kubernetes_version = var.kubernetes_version
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
tags = local.eks_tags
eks_managed_node_groups = {
initial = {
name = "initial"
instance_types = ["t3.medium"]
min_size = 1
max_size = 3
desired_size = 2
vpc_security_group_ids = [aws_security_group.node_group_one.id]
labels = {
role = "system"
}
}
}
enable_irsa = true
enable_cluster_creator_admin_permissions = true
endpoint_public_access = true
authentication_mode = "API_AND_CONFIG_MAP"
}