Skip to content

Commit

Permalink
Merge pull request #2926 from DFE-Digital/feature/deploy-redis
Browse files Browse the repository at this point in the history
Deploy redis
  • Loading branch information
temitope777 authored Jul 21, 2023
2 parents a08941c + 4d15338 commit b30ae87
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
3 changes: 2 additions & 1 deletion terraform/aks/config/development.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"cluster": "test",
"namespace": "git-development",
"environment": "development",
"azure_enable_backup_storage": false
"azure_enable_backup_storage": false,
"enable_monitoring": false
}
36 changes: 25 additions & 11 deletions terraform/aks/database.tf
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"
}

0 comments on commit b30ae87

Please sign in to comment.