-
Notifications
You must be signed in to change notification settings - Fork 3
/
flux.tf
67 lines (55 loc) · 1.15 KB
/
flux.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
resource "kubernetes_namespace" "flux" {
metadata {
name = "flux"
labels = {
"istio-injection" = "disabled"
}
}
}
resource "helm_release" "flux" {
name = "flux"
namespace = kubernetes_namespace.flux.metadata[0].name
repository = "https://charts.fluxcd.io"
chart = "flux"
version = "1.5.0"
set {
name = "git.url"
value = "[email protected]:evry-ace/kubernetes-on-air"
}
set {
name = "git.path"
value = "gitops/"
}
set {
name = "registry.includeImage"
value = "eu.gcr.io/evry-flaatten/*"
}
set {
name = "prometheus.enabled"
value = true
}
set {
name = "prometheus.serviceMonitor.create"
value = true
}
set {
name = "syncGarbageCollection.enabled"
value = true
}
set {
name = "dashboards.enabled"
value = true
}
}
resource "helm_release" "helm_operator" {
name = "helm-operator"
namespace = kubernetes_namespace.flux.metadata[0].name
repository = "https://charts.fluxcd.io"
chart = "helm-operator"
version = "1.2.0"
set {
name = "helm.versions"
value = "v3"
}
depends_on = [helm_release.flux]
}