diff --git a/tf/env/local/namespaces.tf b/tf/env/local/namespaces.tf index ed2f388b5..7b51421ea 100644 --- a/tf/env/local/namespaces.tf +++ b/tf/env/local/namespaces.tf @@ -36,3 +36,22 @@ resource "kubernetes_resource_quota" "adhoc-jobs-podquota" { scopes = ["BestEffort"] } } + +resource "kubernetes_namespace" "qs-job-namespace" { + metadata { + name = "qs-jobs" + } +} + +resource "kubernetes_resource_quota" "api-jobs-podquota" { + metadata { + name = "api-jobs-podquota" + namespace = kubernetes_namespace.api-job-namespace.metadata[0].name + } + spec { + hard = { + pods = 2 + } + scopes = ["BestEffort"] + } +} diff --git a/tf/env/production/namespaces.tf b/tf/env/production/namespaces.tf index f9548be97..605170c26 100644 --- a/tf/env/production/namespaces.tf +++ b/tf/env/production/namespaces.tf @@ -44,3 +44,26 @@ resource "kubernetes_resource_quota" "adhoc-jobs-podquota" { scopes = ["BestEffort"] } } + +resource "kubernetes_namespace" "qs-job-namespace" { + provider = kubernetes.wbaas-3 + + metadata { + name = "qs-jobs" + } +} + +resource "kubernetes_resource_quota" "qs-jobs-podquota" { + provider = kubernetes.wbaas-3 + + metadata { + name = "qs-jobs-podquota" + namespace = kubernetes_namespace.qs-job-namespace.metadata[0].name + } + spec { + hard = { + pods = 4 + } + scopes = ["BestEffort"] + } +} diff --git a/tf/env/staging/namespaces.tf b/tf/env/staging/namespaces.tf index 3ff7b99eb..355faf0b6 100644 --- a/tf/env/staging/namespaces.tf +++ b/tf/env/staging/namespaces.tf @@ -43,3 +43,26 @@ resource "kubernetes_resource_quota" "adhoc-jobs-podquota" { scopes = ["BestEffort"] } } + +resource "kubernetes_namespace" "qs-job-namespace" { + provider = kubernetes.wbaas-2 + + metadata { + name = "qs-jobs" + } +} + +resource "kubernetes_resource_quota" "qs-jobs-podquota" { + provider = kubernetes.wbaas-2 + + metadata { + name = "qs-jobs-podquota" + namespace = kubernetes_namespace.qs-job-namespace.metadata[0].name + } + spec { + hard = { + pods = 2 + } + scopes = ["BestEffort"] + } +}