add legacy domain support

This commit is contained in:
pierre.geeraert
2026-10-13 14:49:48 +01:00
parent 96236c6baf
commit b4fdbccf98
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -56,6 +56,7 @@ variable "kubernetes" {
service_type = optional(string, "ClusterIP")
service_name = optional(string)
domain_name = optional(string)
legacy_domain = optional(bool, false)
exposed = optional(bool, true)
liveness_tcp_socket = optional(number)
liveness_http_get = optional(string)
+1 -1
View File
@@ -37,7 +37,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress" {
}
}
resource "kubernetes_ingress_v1" "automatic_ingress_tryton" {
for_each = { for key, value in var.kubernetes : key => value if value.service_port != null && value.enabled == true && value.docker != true && value.exposed == true }
for_each = { for key, value in var.kubernetes : 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"
namespace = coalesce(each.value.namespace, each.value.connected_namespace, each.key)
+1
View File
@@ -283,6 +283,7 @@ kubernetes = {
image = "ghcr.io/bitwarden/nginx:2026.1.0"
service_port = [5000, 8080, 8443]
exposed = true #no need to set as true but I did it for easy access
legacy_domain = true
domain_name = "bitwarden"
config_map_ref = ["uid.env"]
environment = {}