Skip to content

Commit

Permalink
chore: Workload profiles migration (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored Apr 2, 2024
1 parent 942ce75 commit 3e0f07a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 7 deletions.
15 changes: 14 additions & 1 deletion infra/container_apps/env/dev-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,20 @@ tags = {
container_app = {
min_replicas = 0
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"
}
Expand Down
15 changes: 14 additions & 1 deletion infra/container_apps/env/dev/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@ tags = {
container_app = {
min_replicas = 0
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"
}
Expand Down
2 changes: 0 additions & 2 deletions infra/container_apps/env/prod-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ container_app = {
memory = "2.5Gi"
}



app_settings = [
{
name = "APPLICATIONINSIGHTS_ROLE_NAME"
Expand Down
2 changes: 0 additions & 2 deletions infra/container_apps/env/uat-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ container_app = {
memory = "1Gi"
}



app_settings = [
{
name = "APPLICATIONINSIGHTS_ROLE_NAME"
Expand Down
2 changes: 1 addition & 1 deletion infra/container_apps/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider "azurerm" {
features {}
}

module "container_app_dashboard_backend" {
module "container_app_ms_product" {
source = "github.com/pagopa/selfcare-commons//infra/terraform-modules/container_app_microservice?ref=main"

is_pnpg = var.is_pnpg
Expand Down

0 comments on commit 3e0f07a

Please sign in to comment.