Skip to content

Commit

Permalink
chore: Workload profiles migration (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored Apr 2, 2024
1 parent 1920c9e commit 685eb6b
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 155 deletions.
74 changes: 0 additions & 74 deletions .devops/code-review-pipelines.yml

This file was deleted.

74 changes: 0 additions & 74 deletions .devops/pnpg-code-review-pipelines.yml

This file was deleted.

17 changes: 15 additions & 2 deletions infra/container_apps/env/dev-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,22 @@ tags = {
}

container_app = {
min_replicas = 1
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 = 1
memory = "2Gi"
}
Expand Down
19 changes: 16 additions & 3 deletions infra/container_apps/env/dev/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env_short = "d"
private_dns_name = "selc-d-party-reg-proxy-ca.gentleflower-c63e62fe.westeurope.azurecontainerapps.io"
private_dns_name = "selc-d-party-reg-proxy-ca.livelydesert-633675bb.westeurope.azurecontainerapps.io"
dns_zone_prefix = "dev.selfcare"
api_dns_zone_prefix = "api.dev.selfcare"

Expand All @@ -12,9 +12,22 @@ tags = {
}

container_app = {
min_replicas = 1
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 = 1
memory = "2Gi"
}
Expand Down
2 changes: 1 addition & 1 deletion infra/container_apps/env/uat/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env_short = "u"
private_dns_name = "selc-u-party-reg-proxy-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
private_dns_name = "selc-u-party-reg-proxy-ca.agreeablesky-f71e6306.westeurope.azurecontainerapps.io"
dns_zone_prefix = "uat.selfcare"
api_dns_zone_prefix = "api.uat.selfcare"

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_party_reg_proxy" {
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 685eb6b

Please sign in to comment.