diff --git a/terraform-modules/aws/kubernetes/namespace/main.tf b/terraform-modules/aws/kubernetes/namespace/main.tf new file mode 100644 index 000000000..a2c378271 --- /dev/null +++ b/terraform-modules/aws/kubernetes/namespace/main.tf @@ -0,0 +1,9 @@ +resource "kubernetes_namespace" "this" { + metadata { + annotations = var.annotations + + labels = var.labels + + name = var.name + } +} diff --git a/terraform-modules/aws/kubernetes/namespace/variables.tf b/terraform-modules/aws/kubernetes/namespace/variables.tf new file mode 100644 index 000000000..dc01095c1 --- /dev/null +++ b/terraform-modules/aws/kubernetes/namespace/variables.tf @@ -0,0 +1,14 @@ +variable "name" { + type = string + description = "The namespace name" +} + +variable "annotations" { + type = map(any) + default = {} +} + +variable "labels" { + type = map(any) + default = {} +}