40 lines
1.0 KiB
HCL
40 lines
1.0 KiB
HCL
locals {
|
|
dns_name = "${var.sub-domain}.${var.domain_name}"
|
|
dns_names = [local.dns_name]
|
|
icon = "favicons/favicon-light-default.png"
|
|
service = {
|
|
"name" = "${var.component}-server"
|
|
"port" = {
|
|
"number" = 80
|
|
}
|
|
}
|
|
}
|
|
|
|
module "ingress" {
|
|
source = "git::https://git.solidite.fr/vynil/kydah-modules.git//ingress"
|
|
component = ""
|
|
instance = var.instance
|
|
namespace = var.namespace
|
|
issuer = var.issuer
|
|
ingress_class = var.ingress_class
|
|
labels = local.common-labels
|
|
dns_names = local.dns_names
|
|
middlewares = []
|
|
service = local.service
|
|
providers = {
|
|
kubectl = kubectl
|
|
}
|
|
}
|
|
|
|
module "application" {
|
|
source = "git::https://git.solidite.fr/vynil/kydah-modules.git//application"
|
|
component = var.component
|
|
instance = var.instance
|
|
app_group = var.app_group
|
|
dns_name = local.dns_name
|
|
icon = local.icon
|
|
providers = {
|
|
authentik = authentik
|
|
}
|
|
}
|