From 5f88c306a3f97c0f7248a9dabfd902d48fc9bd6e Mon Sep 17 00:00:00 2001 From: "pierre.geeraert" Date: Mon, 12 Oct 2026 18:11:13 +0100 Subject: [PATCH] frogot the pvc part --- infrastructure/redis.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure/redis.tf b/infrastructure/redis.tf index 9719ba1..1ee96fc 100644 --- a/infrastructure/redis.tf +++ b/infrastructure/redis.tf @@ -62,7 +62,7 @@ resource "kubernetes_deployment_v1" "redis-automatic" { volume_mount { mount_path = "/data" - name = "${each.key}-redis-pvc" + name = "${each.key}-redis-volume" } @@ -130,9 +130,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"])])) } }