mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-14 06:49:05 +02:00
Add ArgoCD as an optional module
This commit is contained in:
28
oci-managed/argocd/argocd.tf
Normal file
28
oci-managed/argocd/argocd.tf
Normal file
@@ -0,0 +1,28 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
|
||||
resource "kubectl_manifest" "dashboard-ingress" {
|
||||
depends_on = [helm_release.argocd]
|
||||
|
||||
server_side_apply = true
|
||||
|
||||
yaml_body = templatefile("${path.module}/argocd_ingress_route.tfpl.yaml", {
|
||||
namespace = var.namespace,
|
||||
my_domain = var.my_domain
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user