From 7f9bc2019de206276cb81f1a17b65b262d553fc6 Mon Sep 17 00:00:00 2001 From: "pierre.geeraert" Date: Mon, 12 Oct 2026 18:24:51 +0100 Subject: [PATCH] work on the reverse proxy --- core/redis.tf | 8 ++++---- core/variables.auto.tfvars | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/redis.tf b/core/redis.tf index 3db7081..a0b9e0f 100644 --- a/core/redis.tf +++ b/core/redis.tf @@ -44,7 +44,7 @@ resource "kubernetes_deployment_v1" "redis-automatic" { volume_mount { mount_path = "/data" - name = "${each.key}-redis-pvc" + name = "${each.key}-redis-volume" } @@ -112,9 +112,9 @@ resource "kubernetes_deployment_v1" "redis-automatic" { volume { - name = "${each.key}-redis-pvc" - persistent_volume_claim { - claim_name = "${each.key}-redis-pvc" + name = "${each.key}-redis-volume" + host_path { + path = try(each.value.redis.host_path, join("/", [var.storage_path.main_storage, coalesce(each.value.namespace, each.value.connected_namespace, each.key), join("-", [each.key, "redis"])])) } } diff --git a/core/variables.auto.tfvars b/core/variables.auto.tfvars index ac19a16..de2cee0 100644 --- a/core/variables.auto.tfvars +++ b/core/variables.auto.tfvars @@ -7,10 +7,11 @@ kubernetes = { service_type = "NodePort" external_port = true pvc = { - nginx-sites-terraform = { - name = "nginx-sites-terraform" + sites-terraform = { + #requires to run the reverse proxy terraform with the kubernetes enabled mount_path = "/etc/nginx/conf.d/" host_path = "/data/kubernetes/reverse-proxy/reverse-proxy-sites" + config_map = sites-terraform } reverse-proxy-log = {