work on the reverse proxy

This commit is contained in:
pierre.geeraert
2026-10-12 18:24:51 +01:00
parent 9f872ebea0
commit 7f9bc2019d
2 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -44,7 +44,7 @@ resource "kubernetes_deployment_v1" "redis-automatic" {
volume_mount { volume_mount {
mount_path = "/data" mount_path = "/data"
name = "${each.key}-redis-pvc" name = "${each.key}-redis-volume"
} }
@@ -112,9 +112,9 @@ resource "kubernetes_deployment_v1" "redis-automatic" {
volume { volume {
name = "${each.key}-redis-pvc" name = "${each.key}-redis-volume"
persistent_volume_claim { host_path {
claim_name = "${each.key}-redis-pvc" 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"])]))
} }
} }
+3 -2
View File
@@ -7,10 +7,11 @@ kubernetes = {
service_type = "NodePort" service_type = "NodePort"
external_port = true external_port = true
pvc = { pvc = {
nginx-sites-terraform = { sites-terraform = {
name = "nginx-sites-terraform" #requires to run the reverse proxy terraform with the kubernetes enabled
mount_path = "/etc/nginx/conf.d/" mount_path = "/etc/nginx/conf.d/"
host_path = "/data/kubernetes/reverse-proxy/reverse-proxy-sites" host_path = "/data/kubernetes/reverse-proxy/reverse-proxy-sites"
config_map = sites-terraform
} }
reverse-proxy-log = { reverse-proxy-log = {