Fix service Name

This commit is contained in:
2024-10-11 22:55:30 +02:00
parent 5dbc3bdea2
commit f4ac0c5ac3
10 changed files with 58 additions and 122 deletions

View File

@@ -1,7 +1,7 @@
data "kubernetes_secret_v1" "authentik" {
metadata {
name = "authentik"
namespace = var.namespace
namespace = "${var.domain}-auth"
}
}
locals {
@@ -9,7 +9,7 @@ locals {
ak_gatekeeper_labels = merge(var.labels, {
"app.kubernetes.io/component" = "ak-gatekeeper"
})
authentik_url = "http://authentik.${var.domain}-auth.svc"
authentik_url = "http://authentik-authentik.${var.domain}-auth.svc"
authentik_token = try(data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"], "no-token")
external_url = format("https://%s", var.dns_name)
}