From 696be7162b7de1d29509342206a878edc0284af3 Mon Sep 17 00:00:00 2001 From: andrea-putzu <106688558+andrea-putzu@users.noreply.github.com> Date: Mon, 9 Dec 2024 12:42:01 +0100 Subject: [PATCH] [SELC-6134] Adding new scale rule for UAT (#502) --- .../container_apps/env/uat-pnpg/terraform.tfvars | 15 ++++++++++++++- infra/container_apps/env/uat/terraform.tfvars | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/infra/container_apps/env/uat-pnpg/terraform.tfvars b/infra/container_apps/env/uat-pnpg/terraform.tfvars index ba35d4b30..db975587e 100644 --- a/infra/container_apps/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/env/uat-pnpg/terraform.tfvars @@ -18,7 +18,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/env/uat/terraform.tfvars b/infra/container_apps/env/uat/terraform.tfvars index 707604a29..485fc1e97 100644 --- a/infra/container_apps/env/uat/terraform.tfvars +++ b/infra/container_apps/env/uat/terraform.tfvars @@ -16,7 +16,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" }