-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Argocd for Diego domain up and running (#135)
* argocd with variable version * argocd with variable version * updated providers version * updated providers version * added workload identity * dirty changes * minor fixs * pre-commit fixs * velero workload identity * add depends_on * setup provider argocd * setup project for argocd * added app for root-diego with provider * argocd updated password loading and configuration * fix app root-diego * pre-commit fixs --------- Co-authored-by: umbcoppolabottazzi <umberto.coppolabottazzi@pagopa.it>
- Loading branch information
1 parent
fd056b0
commit f9c99d9
Showing
18 changed files
with
234 additions
and
393 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,46 @@ | ||
# module "velero" { | ||
# source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//kubernetes_cluster_velero?ref=v8.34.0" | ||
# count = var.aks_enabled ? 1 : 0 | ||
# backup_storage_container_name = "velero-backup" | ||
# subscription_id = data.azurerm_subscription.current.subscription_id | ||
# tenant_id = data.azurerm_subscription.current.tenant_id | ||
# resource_group_name = azurerm_resource_group.rg_aks_backup.name | ||
# prefix = "devopla" | ||
# aks_cluster_name = module.aks[count.index].name | ||
# aks_cluster_rg = azurerm_resource_group.rg_aks.name | ||
# location = var.location | ||
# use_storage_private_endpoint = true | ||
# private_endpoint_subnet_id = data.azurerm_subnet.private_endpoint_italy_subnet.id | ||
# storage_account_private_dns_zone_id = data.azurerm_private_dns_zone.storage_account_private_dns_zone.id | ||
# | ||
# advanced_threat_protection = false | ||
# enable_low_availability_alert = false | ||
# | ||
# tags = var.tags | ||
# } | ||
# | ||
# module "aks_namespace_backup" { | ||
# source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//kubernetes_velero_backup?ref=v8.34.0" | ||
# count = var.aks_enabled ? 1 : 0 | ||
# # required | ||
# backup_name = "daily-backup" | ||
# namespaces = ["ALL"] | ||
# aks_cluster_name = module.aks[count.index].name | ||
# cluster_id = module.aks[count.index].id | ||
# prefix = "devopslab" | ||
# rg_name = azurerm_resource_group.rg_aks.name | ||
# location = var.location | ||
# | ||
# # optional | ||
# ttl = "72h0m0s" | ||
# schedule = "0 3 * * *" #refers to UTC timezone | ||
# volume_snapshot = false | ||
# | ||
# depends_on = [ | ||
# module.velero | ||
# ] | ||
# | ||
# tags = var.tags | ||
# } | ||
## Resource Group | ||
resource "azurerm_resource_group" "rg_velero" { | ||
name = "${local.project}-velero-rg" | ||
location = var.location | ||
tags = var.tags | ||
} | ||
|
||
# Workload identity init | ||
module "velero_workload_identity_init" { | ||
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//kubernetes_workload_identity_init?ref=velero-workload-identity" | ||
|
||
workload_identity_location = var.location | ||
workload_identity_name_prefix = "velero" | ||
workload_identity_resource_group_name = azurerm_resource_group.rg_velero.name | ||
} | ||
|
||
resource "kubernetes_namespace" "velero_namespace" { | ||
metadata { | ||
name = "velero" | ||
} | ||
} | ||
|
||
# Cluster Velero + Workload identity configuration | ||
module "velero_aks_workload_identity" { | ||
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//kubernetes_cluster_velero?ref=velero-workload-identity" | ||
|
||
prefix = var.prefix | ||
location = var.location | ||
subscription_id = data.azurerm_client_config.current.subscription_id | ||
|
||
aks_cluster_name = local.aks_cluster_name | ||
aks_cluster_rg = local.aks_rg_name | ||
workload_identity_name = module.velero_workload_identity_init.user_assigned_identity_name | ||
workload_identity_resource_group_name = azurerm_resource_group.rg_velero.name | ||
|
||
key_vault_id = data.azurerm_key_vault.kv_core_ita.id | ||
|
||
storage_account_resource_group_name = azurerm_resource_group.rg_velero.name | ||
private_endpoint_subnet_id = azurerm_subnet.user_aks_subnet.id | ||
storage_account_private_dns_zone_id = data.azurerm_private_dns_zone.storage_account_private_dns_zone.id | ||
tags = {} | ||
|
||
depends_on = [ | ||
kubernetes_namespace.velero_namespace | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,6 @@ repoServer: | |
replicas: 1 | ||
applicationSet: | ||
replicas: 1 | ||
configs: | ||
cm: | ||
timeout.reconciliation: 30s |
Oops, something went wrong.