-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WHY: Redis is a requisite componemt of the database deployment and it is hereby added to the IAC code in contimuation of the migration to AKS HOW: The existing code is modified and customised for redis, allowing the new code to work side by side with the existing paas code
- Loading branch information
Tope Emmanuel
committed
Jul 20, 2023
1 parent
a08941c
commit 4d15338
Showing
2 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
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,17 +1,31 @@ | ||
module "postgres" { | ||
source = "./vendor/modules/aks//aks/postgres" | ||
|
||
namespace = var.namespace | ||
environment = var.environment | ||
azure_resource_prefix = var.azure_resource_prefix | ||
service_name = var.service_name | ||
service_short = var.service_short | ||
config_short = var.config_short | ||
namespace = var.namespace | ||
environment = var.environment | ||
azure_resource_prefix = var.azure_resource_prefix | ||
service_name = var.service_name | ||
service_short = var.service_short | ||
config_short = var.config_short | ||
cluster_configuration_map = module.cluster_data.configuration_map | ||
use_azure = var.deploy_azure_backing_services | ||
azure_enable_monitoring = var.enable_monitoring | ||
server_version = "14" | ||
azure_enable_backup_storage = var.azure_enable_backup_storage | ||
} | ||
|
||
cluster_configuration_map = module.cluster_data.configuration_map | ||
module "redis-cache" { | ||
source = "./vendor/modules/aks//aks/redis" | ||
|
||
use_azure = var.deploy_azure_backing_services | ||
azure_enable_monitoring = false | ||
server_version = "14" | ||
azure_enable_backup_storage = var.azure_enable_backup_storage | ||
namespace = var.namespace | ||
environment = var.environment | ||
azure_resource_prefix = var.azure_resource_prefix | ||
service_short = var.service_short | ||
config_short = var.config_short | ||
service_name = var.service_name | ||
cluster_configuration_map = module.cluster_data.configuration_map | ||
use_azure = var.deploy_azure_backing_services | ||
azure_enable_monitoring = var.enable_monitoring | ||
azure_patch_schedule = [{ "day_of_week": "Sunday", "start_hour_utc": 01 }] | ||
azure_maxmemory_policy = "allkeys-lfu" | ||
} |