diff --git a/infra/container_apps/hub_spid_login/env/uat-pnpg/terraform.tfvars b/infra/container_apps/hub_spid_login/env/uat-pnpg/terraform.tfvars index 495162aa9..78d767028 100644 --- a/infra/container_apps/hub_spid_login/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/hub_spid_login/env/uat-pnpg/terraform.tfvars @@ -15,9 +15,22 @@ tags = { container_app = { min_replicas = 1 max_replicas = 2 - scale_rules = [] - cpu = 0.5 - memory = "1Gi" + 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/hub_spid_login/env/uat/terraform.tfvars b/infra/container_apps/hub_spid_login/env/uat/terraform.tfvars index a814584a2..3fac943ba 100644 --- a/infra/container_apps/hub_spid_login/env/uat/terraform.tfvars +++ b/infra/container_apps/hub_spid_login/env/uat/terraform.tfvars @@ -14,9 +14,22 @@ tags = { container_app = { min_replicas = 1 max_replicas = 2 - scale_rules = [] - cpu = 0.5 - memory = "1Gi" + 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" } app_settings = [ diff --git a/infra/container_apps/onboarding-cdc/env/uat-pnpg/terraform.tfvars b/infra/container_apps/onboarding-cdc/env/uat-pnpg/terraform.tfvars index cada95472..e2dbcee74 100644 --- a/infra/container_apps/onboarding-cdc/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/onboarding-cdc/env/uat-pnpg/terraform.tfvars @@ -15,9 +15,22 @@ tags = { container_app = { min_replicas = 1 max_replicas = 1 - scale_rules = [] - cpu = 1 - memory = "2Gi" + 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" } app_settings = [ diff --git a/infra/container_apps/onboarding-cdc/env/uat/terraform.tfvars b/infra/container_apps/onboarding-cdc/env/uat/terraform.tfvars index 41e72a8d0..783493235 100644 --- a/infra/container_apps/onboarding-cdc/env/uat/terraform.tfvars +++ b/infra/container_apps/onboarding-cdc/env/uat/terraform.tfvars @@ -14,9 +14,22 @@ tags = { container_app = { min_replicas = 1 max_replicas = 1 - scale_rules = [] - cpu = 1 - memory = "2Gi" + 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" } app_settings = [ diff --git a/infra/container_apps/onboarding-ms/env/uat-pnpg/terraform.tfvars b/infra/container_apps/onboarding-ms/env/uat-pnpg/terraform.tfvars index 4924bbf8f..cd584c311 100644 --- a/infra/container_apps/onboarding-ms/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/onboarding-ms/env/uat-pnpg/terraform.tfvars @@ -15,9 +15,22 @@ tags = { container_app = { min_replicas = 1 max_replicas = 2 - scale_rules = [] - cpu = 0.5 - memory = "1Gi" + 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" } app_settings = [ diff --git a/infra/container_apps/onboarding-ms/env/uat/terraform.tfvars b/infra/container_apps/onboarding-ms/env/uat/terraform.tfvars index 42e95c3b2..902c228ba 100644 --- a/infra/container_apps/onboarding-ms/env/uat/terraform.tfvars +++ b/infra/container_apps/onboarding-ms/env/uat/terraform.tfvars @@ -14,9 +14,22 @@ tags = { container_app = { min_replicas = 1 max_replicas = 2 - scale_rules = [] - cpu = 0.5 - memory = "1Gi" + 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" } app_settings = [