forked from helium/helium-foundation-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargo.tf
50 lines (41 loc) · 1.01 KB
/
argo.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
resource "helm_release" "argocd" {
name = "argocd"
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
namespace = "argocd"
version = "5.8.3"
create_namespace = true
set {
name = "server.insecure"
value = "true"
}
set {
name = "configs.params.server\\.insecure"
value = "true"
}
set {
name = "server.ingress.enabled"
value = "true"
}
set {
name = "server.ingress.hosts[0]"
value = var.argo_url
}
set {
name = "server.ingress.ingressClassName"
value = "nginx"
}
set {
name = "server.repo.server.strict.tls"
value = "true"
}
set {
name = "server.service.annotations.external-dns\\.alpha\\.kubernetes\\.io/hostname"
value = var.argo_url
}
}
resource "kubectl_manifest" "argocd" {
depends_on = [helm_release.argocd]
count = length(data.kubectl_path_documents.application.documents)
yaml_body = element(data.kubectl_path_documents.application.documents, count.index)
}