From a759ef8bbcaac38c830b012d37de99a4a1e7132d Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Tue, 20 Jan 2026 17:02:47 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(prometheus-node-exporter):?= =?UTF-8?q?=20add=20namespace=20to=20prometheus-node-exporter=20addon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + addons.tf | 1 + main.tf | 2 +- variables.tf | 10 ++++++++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a909a95..b158f0c 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ efs-csi-controller 0 5m | [enable\_cluster\_creator\_admin\_permissions](#input\_enable\_cluster\_creator\_admin\_permissions) | Grant admin permissions to the cluster creator | `bool` | `true` | no | | [subnets\_name](#input\_subnets\_name) | Name pattern for subnets to be used by EKS cluster | `string` | `"*-container-*"` | no | | [tags](#input\_tags) | Additional tags to apply to all resources | `map(string)` | `{}` | no | +| [telemetry\_namespace](#input\_telemetry\_namespace) | Namespace for telemetry components | `string` | `"telemetry"` | no | | [vpc\_name](#input\_vpc\_name) | Name of the VPC where EKS cluster will be created | `string` | n/a | yes | ## Outputs diff --git a/addons.tf b/addons.tf index 9e8d98a..3f83cd8 100644 --- a/addons.tf +++ b/addons.tf @@ -36,6 +36,7 @@ locals { } prometheus-node-exporter = { most_recent = true + namespace = var.telemetry_namespace } snapshot-controller = { most_recent = true diff --git a/main.tf b/main.tf index 3362d0b..4507be3 100644 --- a/main.tf +++ b/main.tf @@ -50,7 +50,7 @@ module "cluster" { security_group_additional_rules = local.cluster_security_group_additional_rules eks_managed_node_groups = { - karpenter_controllers = { + karpenter = { name = local.ng_name ami_type = "BOTTLEROCKET_x86_64" capacity_type = "ON_DEMAND" diff --git a/variables.tf b/variables.tf index be02865..dbd959a 100644 --- a/variables.tf +++ b/variables.tf @@ -145,3 +145,13 @@ variable "cloudwatch_retention_days" { type = string default = "14" } + +variable "telemetry_namespace" { + description = "Namespace for telemetry components" + type = string + default = "telemetry" + validation { + condition = can(regex("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$", var.telemetry_namespace)) && length(var.telemetry_namespace) <= 63 + error_message = "Namespace must consist of lower case alphanumeric characters or '-', start and end with an alphanumeric character, and be no longer than 63 characters." + } +}