fix manifest and ingress
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user