change naming of svc to make them unique and quite some work on bitwarden

This commit is contained in:
2025-11-25 23:02:26 +00:00
parent 594d0af218
commit 3b933c8fe1
2 changed files with 267 additions and 25 deletions
+2 -2
View File
@@ -237,7 +237,7 @@ resource "kubernetes_service" "automatic_service" {
content {
port = port.value
target_port = port.value
name = replace("${each.key}${port.value}", "/(.{0,15})(.*)/", "$1")
name = replace("${port.value}${each.key}", "/(.{0,15})(.*)/", "$1")
}
}
@@ -339,7 +339,7 @@ resource "kubernetes_deployment_v1" "automatic" {
content {
container_port = port.value
# name = "${each.key}-${port.value}"
name = replace("${each.key}${port.value}", "/(.{0,15})(.*)/", "$1")
name = replace("${port.value}${each.key}", "/(.{0,15})(.*)/", "$1")
}
}