Skip to content

Commit

Permalink
🐛 fix(prometheus-node-exporter): add namespace to prometheus-node-exp…
Browse files Browse the repository at this point in the history
…orter addon
  • Loading branch information
morga471 committed Jan 20, 2026
1 parent 24b5136 commit a759ef8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ efs-csi-controller 0 5m
| <a name="input_enable_cluster_creator_admin_permissions"></a> [enable\_cluster\_creator\_admin\_permissions](#input\_enable\_cluster\_creator\_admin\_permissions) | Grant admin permissions to the cluster creator | `bool` | `true` | no |
| <a name="input_subnets_name"></a> [subnets\_name](#input\_subnets\_name) | Name pattern for subnets to be used by EKS cluster | `string` | `"*-container-*"` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | Additional tags to apply to all resources | `map(string)` | `{}` | no |
| <a name="input_telemetry_namespace"></a> [telemetry\_namespace](#input\_telemetry\_namespace) | Namespace for telemetry components | `string` | `"telemetry"` | no |
| <a name="input_vpc_name"></a> [vpc\_name](#input\_vpc\_name) | Name of the VPC where EKS cluster will be created | `string` | n/a | yes |

## Outputs
Expand Down
1 change: 1 addition & 0 deletions addons.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ locals {
}
prometheus-node-exporter = {
most_recent = true
namespace = var.telemetry_namespace
}
snapshot-controller = {
most_recent = true
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}

0 comments on commit a759ef8

Please sign in to comment.