frogot the pvc part
This commit is contained in:
@@ -62,7 +62,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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -130,9 +130,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"])]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user