Skip to content

Commit

Permalink
move ci workers into its own namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Yang <[email protected]>
  • Loading branch information
Rui Yang committed Jul 23, 2022
1 parent 5adad11 commit ab0f272
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion terraform/environments/production/ci.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ resource "kubernetes_namespace" "ci" {
]
}

resource "kubernetes_namespace" "ci_workers" {
metadata {
name = "ci-workers"

labels = {
name = "ci-workers"
}
}

depends_on = [
module.cluster.node_pools
]
}

resource "random_password" "encryption_key" {
length = 32
special = true
Expand Down Expand Up @@ -121,7 +135,7 @@ data "template_file" "ci_workers_values" {
}

resource "helm_release" "ci_workers" {
namespace = kubernetes_namespace.ci.id
namespace = kubernetes_namespace.ci_workers.id
name = "ci-workers"
repository = "https://concourse-charts.storage.googleapis.com"
chart = "concourse"
Expand Down

0 comments on commit ab0f272

Please sign in to comment.