mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-11 14:30:55 +01:00
34 lines
728 B
HCL
34 lines
728 B
HCL
module "eks_al2" {
|
|
source = "terraform-aws-modules/eks/aws"
|
|
version = "~> 20.0"
|
|
|
|
cluster_name = "${local.name}-al2"
|
|
cluster_version = "1.31"
|
|
|
|
# EKS Addons
|
|
cluster_addons = {
|
|
coredns = {}
|
|
eks-pod-identity-agent = {}
|
|
kube-proxy = {}
|
|
vpc-cni = {}
|
|
}
|
|
|
|
vpc_id = module.vpc.vpc_id
|
|
subnet_ids = module.vpc.private_subnets
|
|
|
|
self_managed_node_groups = {
|
|
example = {
|
|
ami_type = "AL2_x86_64"
|
|
instance_type = "m6i.large"
|
|
|
|
min_size = 2
|
|
max_size = 5
|
|
# This value is ignored after the initial creation
|
|
# https://github.com/bryantbiggs/eks-desired-size-hack
|
|
desired_size = 2
|
|
}
|
|
}
|
|
|
|
tags = local.tags
|
|
}
|