mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-12 13:59:09 +02:00
38 lines
938 B
HCL
38 lines
938 B
HCL
resource "helm_release" "argocd" {
|
|
namespace = var.namespace
|
|
create_namespace = true
|
|
name = "argo"
|
|
repository = "https://argoproj.github.io/argo-helm"
|
|
chart = "argo-cd"
|
|
version = var.argocd_chart_version
|
|
cleanup_on_fail = true
|
|
|
|
# Helm chart deployment can sometimes take longer than the default 5 minutes
|
|
timeout = var.timeout_seconds
|
|
|
|
set {
|
|
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
|
|
})
|
|
}
|