diff --git a/core/variables.auto.tfvars b/core/variables.auto.tfvars index bd700de..937cf38 100644 --- a/core/variables.auto.tfvars +++ b/core/variables.auto.tfvars @@ -6,6 +6,7 @@ kubernetes = { service_port = [4580] external_port = true service_type = "NodePort" + domain_name = ["echo", "hello"] #command = ["-text=Hello authenticated world!"] pvc = { echo-config = { diff --git a/modules/ingress/ingress.tf b/modules/ingress/ingress.tf index 7798c18..f745659 100644 --- a/modules/ingress/ingress.tf +++ b/modules/ingress/ingress.tf @@ -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 = "/"