-
Notifications
You must be signed in to change notification settings - Fork 0
/
eks.tf
46 lines (38 loc) · 951 Bytes
/
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
38
39
40
41
42
43
44
45
46
module "eks" {
source = "terraform-aws-modules/eks/aws"
version = "19.15.1"
cluster_name = var.name
cluster_endpoint_public_access = true
cluster_addons = {
coredns = {
most_recent = true
}
kube-proxy = {
most_recent = true
}
vpc-cni = {
most_recent = true
}
}
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
control_plane_subnet_ids = module.vpc.intra_subnets
# EKS Managed Node Group(s)
eks_managed_node_group_defaults = {
ami_type = "AL2_x86_64"
instance_types = ["t3.medium"]
attach_cluster_primary_security_group = true
}
eks_managed_node_groups = {
juice-shop-cluster-wg = {
min_size = 1
max_size = 2
desired_size = 1
instance_types = ["t3.medium"]
capacity_type = "SPOT"
tags = {
ExtraTag = "juice-shop"
}
}
}
}