Skip to content

Commit

Permalink
Creating operators namespace for future modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
zawac002 committed Sep 6, 2023
1 parent 3974354 commit ad7a200
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ The node group maximum size
Default: `15`


**operators_ns** `string`

Namespace to create where operators will be installed.

Default: `"operators"`


## Outputs

**module_name**
Expand Down
11 changes: 11 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,14 @@ resource "aws_security_group_rule" "allow_sidecar_injection" {
security_group_id = module.cluster.node_security_group_id
source_security_group_id = module.cluster.cluster_primary_security_group_id
}

resource "kubernetes_namespace" "operators" {
depends_on = [
module.cluster.eks_managed_node_groups,
]

metadata {
name = var.operators_ns
}
}

6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,9 @@ variable "eks_ng_max_size" {
type = number
default = 15
}

variable "operators_ns" {
description = "Namespace to create where operators will be installed."
type = string
default = "operators"
}

0 comments on commit ad7a200

Please sign in to comment.