Skip to content

Commit

Permalink
Kubernetes - namespace (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekka1 authored Jan 24, 2022
1 parent ac78c8a commit 6998e0f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions terraform-modules/aws/kubernetes/namespace/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "kubernetes_namespace" "this" {
metadata {
annotations = var.annotations

labels = var.labels

name = var.name
}
}
14 changes: 14 additions & 0 deletions terraform-modules/aws/kubernetes/namespace/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
variable "name" {
type = string
description = "The namespace name"
}

variable "annotations" {
type = map(any)
default = {}
}

variable "labels" {
type = map(any)
default = {}
}

0 comments on commit 6998e0f

Please sign in to comment.