Skip to content

Commit

Permalink
update image to AL2023
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 30, 2024
1 parent 28939a6 commit 4334f8e
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ locals {
}

module "cluster" {
source = "git@github.e.it.census.gov:SCT-Engineering/terraform-aws-eks.git?ref=v20.8.5"
source = "git@github.e.it.census.gov:SCT-Engineering/terraform-aws-eks.git?ref=v20.20.0"
#version = "19.16.0"

cluster_name = var.cluster_name
Expand All @@ -99,6 +99,9 @@ module "cluster" {
kube-proxy = {
most_recent = true
}
eks-pod-identity-agent = {
most_recent = true
}
vpc-cni = {
most_recent = true
service_account_role_arn = module.vpc_cni_irsa_role.iam_role_arn
Expand All @@ -114,10 +117,10 @@ module "cluster" {
}

eks_managed_node_group_defaults = {
ami_type = "AL2_x86_64"
ami_type = "AL2023_x86_64_STANDARD"
}

node_security_group_enable_recommended_rules = false
node_security_group_enable_recommended_rules = true

node_security_group_additional_rules = local.node_security_group_additional_rules

Expand All @@ -141,14 +144,23 @@ module "cluster" {
ebs = {
volume_size = var.eks_instance_disk_size
volume_type = "gp3"
iops = 3000
throughput = 125
# iops = 3000
# throughput = 125
encrypted = true
delete_on_termination = true
kms_key_id = data.aws_kms_key.ebs_key.arn
}
}
}
taints = {
# This Taint aims to keep just EKS Addons and Karpenter running on this MNG
# The pods that do not tolerate this taint should run on nodes created by Karpenter
addons = {
key = "CriticalAddonsOnly"
value = "true"
effect = "NO_SCHEDULE"
},
}
}
}

Expand Down

0 comments on commit 4334f8e

Please sign in to comment.