mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-12 13:59:09 +02:00
enable kustomize helm, add argocd domain
This commit is contained in:
@@ -14,15 +14,24 @@ resource "helm_release" "argocd" {
|
||||
name = "configs.params.server\\.insecure"
|
||||
value = "true"
|
||||
}
|
||||
set {
|
||||
name = "configs.cm.kustomize\\.buildOptions"
|
||||
value = "--enable-helm"
|
||||
}
|
||||
set {
|
||||
name = "global.domain"
|
||||
value = "argocd.${var.my_domain}"
|
||||
}
|
||||
}
|
||||
|
||||
resource "kubectl_manifest" "dashboard-ingress" {
|
||||
depends_on = [helm_release.argocd]
|
||||
|
||||
|
||||
force_new = true
|
||||
server_side_apply = true
|
||||
|
||||
yaml_body = templatefile("${path.module}/argocd_ingress_route.tfpl.yaml", {
|
||||
namespace = var.namespace,
|
||||
my_domain = var.my_domain
|
||||
})
|
||||
}
|
||||
yaml_body = templatefile("${path.module}/argocd_ingress_route.tfpl.yaml", {
|
||||
namespace = var.namespace,
|
||||
my_domain = var.my_domain
|
||||
})
|
||||
}
|
||||
|
@@ -5,3 +5,7 @@ output "argocd_url" {
|
||||
output "argo_helm_values_overrides" {
|
||||
value = helm_release.argocd.metadata[0].values
|
||||
}
|
||||
|
||||
output "argocd_ingress_route" {
|
||||
value = kubectl_manifest.dashboard-ingress.yaml_body_parsed
|
||||
}
|
Reference in New Issue
Block a user