From 23f59668a85368fe5c3916a1b18e447c55a07c46 Mon Sep 17 00:00:00 2001 From: "pierre.geeraert" Date: Tue, 13 Oct 2026 18:04:15 +0100 Subject: [PATCH] enable multiple domain name --- applications/module.tf | 2 +- applications/variables.auto.tfvars | 13 ++----------- core/module.tf | 2 +- core/variables.auto.tfvars | 2 +- infrastructure/module.tf | 2 +- infrastructure/variables.auto.tfvars | 2 +- modules/ingress/ingress.tf | 2 +- 7 files changed, 8 insertions(+), 17 deletions(-) diff --git a/applications/module.tf b/applications/module.tf index 88a8be8..816a7c2 100644 --- a/applications/module.tf +++ b/applications/module.tf @@ -55,7 +55,7 @@ variable "kubernetes" { service_port = optional(list(number)) service_type = optional(string, "ClusterIP") service_name = optional(string) - domain_name = optional(string) + domain_name = optional(list(string)) liveness_tcp_socket = optional(number) liveness_http_get = optional(string) liveness_http_get_path = optional(string) diff --git a/applications/variables.auto.tfvars b/applications/variables.auto.tfvars index 727550d..bbfd484 100644 --- a/applications/variables.auto.tfvars +++ b/applications/variables.auto.tfvars @@ -4,7 +4,6 @@ kubernetes = { replicas = 01 image = "linuxserver/bookstack:latest" service_port = [80, 443] - domain_name = "bookstack" database = { "engine" = "mysql" "image" = "lscr.io/linuxserver/mariadb" @@ -100,7 +99,6 @@ kubernetes = { enabled = false name = "stirling-pdf" image = "stirlingtools/stirling-pdf:2.0.0" - domain_name = "stirling" service_port = [8080] environment = { @@ -195,7 +193,6 @@ kubernetes = { onitama = { enabled = false namespace = "onitama" - domain_name = "onitama" image = "ghcr.io/jackadamson/onitama:latest" service_port = [8080] requirements = { @@ -342,7 +339,7 @@ kubernetes = { #replicas = 0 image = "ghcr.io/paperless-ngx/paperless-ngx:2.18.4" service_port = [8000] - domain_name = "paperless2" + domain_name = ["paperless2"] database = { image = "postgres:15.6" mountPath = "/var/lib/postgresql/data" @@ -591,7 +588,7 @@ kubernetes = { namespace = "next" #replicas = 0 image = "nextcloud:29.0.3-apache" - domain_name = "next" + domain_name = ["next"] service_port = [80] #extra_manifest = ["/opt/kubernetes/Nextcloud_kube/next.secret.yaml"] secret_ref = ["nextcloud-credentials"] @@ -1144,7 +1141,6 @@ kubernetes = { #enabled = false image = "ghcr.io/requarks/wiki:2.5" service_port = [3000] - #domain_name = "wikijs" extra_manifest = ["/opt/kubernetes/Terraform_kube/external_manifests/wikijs/wikijs-db.secret.yaml"] database = { image = "postgres:17" @@ -1935,7 +1931,6 @@ kubernetes = { #disabled because it needs AI to import a pdf and AI integration is not working enabled = false replicas = 01 - domain_name = "reactive" image = "ghcr.io/amruthpillai/reactive-resume:latest" service_port = [3000] environment = { @@ -1968,7 +1963,6 @@ kubernetes = { replicas = 01 image = "opencloudeu/opencloud-rolling:latest" service_port = [9200] - #domain_name = "opencloud" environment = { #IDM_CREATE_DEMO_USERS = { @@ -2009,7 +2003,6 @@ kubernetes = { replicas = 0 image = "owncloud/server" service_port = [8080] - domain_name = "owncloud" database = { "engine" = "mysql" "image" = "lscr.io/linuxserver/mariadb" @@ -2065,7 +2058,6 @@ kubernetes = { replicas = 01 image = "kopia/kopia" service_port = [51515] - domain_name = "kopia" command = ["start", "--disable-csrf-token-checks", "--insecure", "--address=0.0.0.0:51515", "--server-username=USERNAME", "--server-password=SECRET_PASSWORD"] environment = { KOPIA_PASSWORD = { @@ -2096,7 +2088,6 @@ kubernetes = { replicas = 01 image = "ghcr.io/degoog-org/degoog:latest" service_port = [4444] - domain_name = "degoog" environment = { DEGOOG_SETTINGS_PASSWORDS = { value = "Crease1-City-Canned" diff --git a/core/module.tf b/core/module.tf index da27eb6..8bdca05 100644 --- a/core/module.tf +++ b/core/module.tf @@ -55,7 +55,7 @@ variable "kubernetes" { external_port = optional(bool, false) service_type = optional(string, "ClusterIP") service_name = optional(string) - domain_name = optional(string) + domain_name = optional(list(string)) legacy_domain = optional(bool, false) exposed = optional(bool, true) liveness_tcp_socket = optional(number) diff --git a/core/variables.auto.tfvars b/core/variables.auto.tfvars index e8a4086..bd700de 100644 --- a/core/variables.auto.tfvars +++ b/core/variables.auto.tfvars @@ -284,7 +284,7 @@ kubernetes = { service_port = [8080, 5000, 8443] exposed = true #no need to set as true but I did it for easy access legacy_domain = true - domain_name = "bitwarden" + domain_name = ["bitwarden"] config_map_ref = ["uid.env"] environment = {} diff --git a/infrastructure/module.tf b/infrastructure/module.tf index eefc6e0..030dda7 100644 --- a/infrastructure/module.tf +++ b/infrastructure/module.tf @@ -56,7 +56,7 @@ variable "kubernetes" { service_port = optional(list(number)) service_type = optional(string, "ClusterIP") service_name = optional(string) - domain_name = optional(string) + domain_name = optional(list(string)) legacy_domain = optional(bool, false) exposed = optional(bool, true) liveness_tcp_socket = optional(number) diff --git a/infrastructure/variables.auto.tfvars b/infrastructure/variables.auto.tfvars index 0846747..54c1c7e 100644 --- a/infrastructure/variables.auto.tfvars +++ b/infrastructure/variables.auto.tfvars @@ -289,7 +289,7 @@ kubernetes = { image = "debian" enabled = false service_port = [19999] - domain_name = "netdata" + domain_name = ["netdata"] command = ["sleep", "3600"] security_context = true diff --git a/modules/ingress/ingress.tf b/modules/ingress/ingress.tf index d7b4946..17638c9 100644 --- a/modules/ingress/ingress.tf +++ b/modules/ingress/ingress.tf @@ -32,7 +32,7 @@ variable "kubernetes_input" { external_port = optional(bool, false) service_type = optional(string, "ClusterIP") service_name = optional(string) - domain_name = optional(string) + domain_name = optional(list(string)) legacy_domain = optional(bool, false) exposed = optional(bool, true) liveness_tcp_socket = optional(number)