From 4d683351d8694dd4cb05d71ede803ae453605924 Mon Sep 17 00:00:00 2001 From: andrea-putzu <106688558+andrea-putzu@users.noreply.github.com> Date: Mon, 9 Dec 2024 12:38:27 +0100 Subject: [PATCH] [SELC-6134] Adding new scale rule for UAT (#239) --- .../user-cdc/env/uat-pnpg/terraform.tfvars | 15 ++++++++++++++- .../user-cdc/env/uat/terraform.tfvars | 15 ++++++++++++++- .../user-group-cdc/env/uat/terraform.tfvars | 15 ++++++++++++++- .../user-group-ms/env/uat-pnpg/terraform.tfvars | 15 ++++++++++++++- .../user-group-ms/env/uat/terraform.tfvars | 15 ++++++++++++++- .../user-ms/env/uat-pnpg/terraform.tfvars | 15 ++++++++++++++- .../user-ms/env/uat/terraform.tfvars | 15 ++++++++++++++- 7 files changed, 98 insertions(+), 7 deletions(-) diff --git a/infra/container_apps/user-cdc/env/uat-pnpg/terraform.tfvars b/infra/container_apps/user-cdc/env/uat-pnpg/terraform.tfvars index 92a0a49b..5c16be0a 100644 --- a/infra/container_apps/user-cdc/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/user-cdc/env/uat-pnpg/terraform.tfvars @@ -15,7 +15,20 @@ tags = { container_app = { min_replicas = 1 max_replicas = 1 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 1 memory = "2Gi" } diff --git a/infra/container_apps/user-cdc/env/uat/terraform.tfvars b/infra/container_apps/user-cdc/env/uat/terraform.tfvars index 3f01e361..94d5bcd2 100644 --- a/infra/container_apps/user-cdc/env/uat/terraform.tfvars +++ b/infra/container_apps/user-cdc/env/uat/terraform.tfvars @@ -14,7 +14,20 @@ tags = { container_app = { min_replicas = 1 max_replicas = 1 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 1 memory = "2Gi" } diff --git a/infra/container_apps/user-group-cdc/env/uat/terraform.tfvars b/infra/container_apps/user-group-cdc/env/uat/terraform.tfvars index c0c1f020..e10fe628 100644 --- a/infra/container_apps/user-group-cdc/env/uat/terraform.tfvars +++ b/infra/container_apps/user-group-cdc/env/uat/terraform.tfvars @@ -14,7 +14,20 @@ tags = { container_app = { min_replicas = 1 max_replicas = 1 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 1 memory = "2Gi" } diff --git a/infra/container_apps/user-group-ms/env/uat-pnpg/terraform.tfvars b/infra/container_apps/user-group-ms/env/uat-pnpg/terraform.tfvars index 50a03a22..a8b935d4 100644 --- a/infra/container_apps/user-group-ms/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/user-group-ms/env/uat-pnpg/terraform.tfvars @@ -14,7 +14,20 @@ tags = { container_app = { min_replicas = 1 max_replicas = 2 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 0.5 memory = "1Gi" } diff --git a/infra/container_apps/user-group-ms/env/uat/terraform.tfvars b/infra/container_apps/user-group-ms/env/uat/terraform.tfvars index f57263c1..477f6cb5 100644 --- a/infra/container_apps/user-group-ms/env/uat/terraform.tfvars +++ b/infra/container_apps/user-group-ms/env/uat/terraform.tfvars @@ -13,7 +13,20 @@ tags = { container_app = { min_replicas = 1 max_replicas = 2 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 0.5 memory = "1Gi" } diff --git a/infra/container_apps/user-ms/env/uat-pnpg/terraform.tfvars b/infra/container_apps/user-ms/env/uat-pnpg/terraform.tfvars index dd4a6a4b..284ae1f2 100644 --- a/infra/container_apps/user-ms/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/user-ms/env/uat-pnpg/terraform.tfvars @@ -14,7 +14,20 @@ tags = { container_app = { min_replicas = 1 max_replicas = 1 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 0.5 memory = "1Gi" } diff --git a/infra/container_apps/user-ms/env/uat/terraform.tfvars b/infra/container_apps/user-ms/env/uat/terraform.tfvars index f2e38909..7929a141 100644 --- a/infra/container_apps/user-ms/env/uat/terraform.tfvars +++ b/infra/container_apps/user-ms/env/uat/terraform.tfvars @@ -13,7 +13,20 @@ tags = { container_app = { min_replicas = 1 max_replicas = 1 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 0.5 memory = "1Gi" }