fix manifest and ingress

This commit is contained in:
pierre.geeraert
2026-10-13 13:49:34 +01:00
parent 763582404c
commit dce7d02073
3 changed files with 13 additions and 2 deletions
+11
View File
@@ -3,10 +3,21 @@ resource "kubernetes_ingress_v1" "automatic_ingress" {
metadata {
name = "${each.key}-ingress"
namespace = coalesce(each.value.namespace, each.value.connected_namespace, each.key)
annotations = {
"cert-manager.io/cluster-issuer" = "letsencrypt-prod"
"traefik.ingress.kubernetes.io/router.entrypoints" = "websecure"
}
}
spec {
ingress_class_name = "traefik"
# Dynamic TLS configuration for cert-manager
tls {
hosts = [join(".", [coalesce(each.value.domain_name, each.key), "geeraert.eu"])]
secret_name = "${each.key}-tls-secret" # cert-manager will create and manage this secret automatically
}
rule {
host = join(".", [coalesce(each.value.domain_name, each.key), "geeraert.eu"])
http {