mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-13 14:29:06 +02:00
fix traefik
This commit is contained in:
@@ -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"
|
||||
}
|
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user