Skip to content

Commit

Permalink
📦️ package(addons): create separate file for addons and add kube-stat…
Browse files Browse the repository at this point in the history
…e-metrics and prometheus-node-exporter
  • Loading branch information
morga471 committed Jan 20, 2026
1 parent 54692ae commit 24b5136
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 45 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ efs-csi-controller 0 5m

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.27.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.28.0 |
| <a name="provider_null"></a> [null](#provider\_null) | 3.2.4 |
| <a name="provider_terraform"></a> [terraform](#provider\_terraform) | n/a |

Expand Down
49 changes: 49 additions & 0 deletions addons.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
locals {
addons = {
amazon-cloudwatch-observability = {
most_recent = true
service_account_role_arn = module.cloudwatch_observability_irsa_role.iam_role_arn
}
aws-ebs-csi-driver = {
most_recent = true
service_account_role_arn = module.ebs_csi_irsa_role.iam_role_arn
}
aws-efs-csi-driver = {
most_recent = true
service_account_role_arn = module.efs_csi_irsa_role.iam_role_arn
}
cert-manager = {
most_recent = true
}
coredns = {
most_recent = true
}
eks-node-monitoring-agent = {
most_recent = true
}
eks-pod-identity-agent = {
most_recent = true
before_compute = true
}
kube-proxy = {
most_recent = true
}
kube-state-metrics = {
most_recent = true
}
metrics-server = {
most_recent = true
}
prometheus-node-exporter = {
most_recent = true
}
snapshot-controller = {
most_recent = true
}
vpc-cni = {
most_recent = true
service_account_role_arn = module.vpc_cni_irsa_role.iam_role_arn
before_compute = true
}
}
}
45 changes: 1 addition & 44 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,50 +41,7 @@ module "cluster" {
vpc_id = local.vpc_id
subnet_ids = local.subnets

addons = {
amazon-cloudwatch-observability = {
most_recent = true
service_account_role_arn = module.cloudwatch_observability_irsa_role.iam_role_arn
}
aws-ebs-csi-driver = {
most_recent = true
service_account_role_arn = module.ebs_csi_irsa_role.iam_role_arn
}
aws-efs-csi-driver = {
most_recent = true
service_account_role_arn = module.efs_csi_irsa_role.iam_role_arn
}
cert-manager = {
most_recent = true
}
coredns = {
most_recent = true
}
eks-node-monitoring-agent = {
most_recent = true
}
eks-pod-identity-agent = {
most_recent = true
before_compute = true
}
kube-proxy = {
most_recent = true
}
# kube-state-metrics = {
# most_recent = true
# }
metrics-server = {
most_recent = true
}
snapshot-controller = {
most_recent = true
}
vpc-cni = {
most_recent = true
service_account_role_arn = module.vpc_cni_irsa_role.iam_role_arn
before_compute = true
}
}
addons = local.addons

node_security_group_enable_recommended_rules = true

Expand Down

0 comments on commit 24b5136

Please sign in to comment.