This commit is contained in:
pierre.geeraert
2026-10-13 18:26:25 +01:00
parent a78a3c4e48
commit 8848037c0f
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -71,7 +71,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress_legacy" {
for_each = { for key, value in var.kubernetes_input : key => value if value.service_port != null && value.enabled == true && value.docker != true && value.exposed == true && value.legacy_domain == true }
metadata {
name = "${each.key}-ingress"
name = "${each.key}-legacy-ingress"
namespace = coalesce(each.value.namespace, each.value.connected_namespace, each.key)
annotations = {
@@ -88,7 +88,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress_legacy" {
dynamic "tls" {
for_each = toset(coalesce(each.value.domain_name, [each.key]))
content {
hosts = [join(".", [tls.value, "geeraert.eu"])]
hosts = [join(".", [tls.value, "tryton.geeraert.eu"])]
secret_name = "${each.key}-${tls.value}-tls-secret"
}
}
@@ -98,7 +98,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress_legacy" {
dynamic "rule" {
for_each = toset(coalesce(each.value.domain_name, [each.key]))
content {
host = join(".", [rule.value, "geeraert.eu"])
host = join(".", [rule.value, "tryton.geeraert.eu"])
http {
path {
path = "/"