Skip to content

Namespace consolidation #17

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
namespace = "karpenter"
namespace = var.namespace
amd_ami_family = "Bottlerocket"
amd_ami_alias = "bottlerocket@latest"
}
Expand All @@ -12,7 +12,7 @@ module "karpenter_resources" {
cluster_name = var.cluster_name
enable_irsa = true
irsa_oidc_provider_arn = var.oidc_provider_arn
create_pod_identity_association = true
morga471 marked this conversation as resolved.
Show resolved Hide resolved
irsa_namespace_service_accounts = ["${local.namespace}:karpenter"]

# Attach additional IAM policies to the Karpenter node IAM role
node_iam_role_additional_policies = {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ variable "karpenter_tag" {
default = "1.1.1"
}

variable "namespace" {
description = "Namespace in which to install cert manager"
type = string
default = "kube-system"
}

variable "subnets_name" {
description = "Define the name of the subnets to be used by this cluster"
type = string
Expand Down