fix traefik

This commit is contained in:
2024-03-10 11:55:14 +01:00
parent 65ab50b23e
commit 934b75b714
8 changed files with 79 additions and 404 deletions

View File

@@ -1,9 +1,21 @@
output "traefik_dashboard_password" {
value = random_password.traefik_dashboard_password.result
sensitive = true
value = random_password.traefik_dashboard_password.result
sensitive = true
}
output "traefik_dashboard_username" {
value = "admin"
sensitive = true
value = "admin"
sensitive = true
}
output "traefik_nlb_public_ip" {
value = local.traefik_nlb_public_ip
}
resource "local_file" "traefik_values" {
content = templatefile("${path.root}/${var.values_file}", merge({
traefik_dashboard_username = base64encode("admin")
traefik_dashboard_password = base64encode(random_password.traefik_dashboard_password.result)
}, var.traefik_template_values))
filename = "${path.module}/traefik_values.yaml"
}

View File

@@ -5,7 +5,7 @@ resource "helm_release" "traefik" {
repository = "https://traefik.github.io/charts"
chart = "traefik"
version = var.traefik_chart_version
cleanup_on_fail = true
cleanup_on_fail = true
# Helm chart deployment can sometimes take longer than the default 5 minutes
timeout = var.timeout_seconds
@@ -29,4 +29,4 @@ resource "random_password" "traefik_dashboard_password" {
override_special = "_%@"
upper = true
lower = true
}
}