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
+1
View File
@@ -6,6 +6,7 @@ kubernetes = {
service_port = [4580] service_port = [4580]
external_port = true external_port = true
service_type = "NodePort" service_type = "NodePort"
domain_name = ["echo", "hello"]
#command = ["-text=Hello authenticated world!"] #command = ["-text=Hello authenticated world!"]
pvc = { pvc = {
echo-config = { echo-config = {
+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 } 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 { metadata {
name = "${each.key}-ingress" name = "${each.key}-legacy-ingress"
namespace = coalesce(each.value.namespace, each.value.connected_namespace, each.key) namespace = coalesce(each.value.namespace, each.value.connected_namespace, each.key)
annotations = { annotations = {
@@ -88,7 +88,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress_legacy" {
dynamic "tls" { dynamic "tls" {
for_each = toset(coalesce(each.value.domain_name, [each.key])) for_each = toset(coalesce(each.value.domain_name, [each.key]))
content { content {
hosts = [join(".", [tls.value, "geeraert.eu"])] hosts = [join(".", [tls.value, "tryton.geeraert.eu"])]
secret_name = "${each.key}-${tls.value}-tls-secret" secret_name = "${each.key}-${tls.value}-tls-secret"
} }
} }
@@ -98,7 +98,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress_legacy" {
dynamic "rule" { dynamic "rule" {
for_each = toset(coalesce(each.value.domain_name, [each.key])) for_each = toset(coalesce(each.value.domain_name, [each.key]))
content { content {
host = join(".", [rule.value, "geeraert.eu"]) host = join(".", [rule.value, "tryton.geeraert.eu"])
http { http {
path { path {
path = "/" path = "/"