-
Notifications
You must be signed in to change notification settings - Fork 0
/
helm.tf
66 lines (56 loc) · 1.59 KB
/
helm.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
resource "helm_release" "external-dns" {
depends_on = [kubernetes_namespace.default_namespaces]
name = "external-dns"
chart = "external-dns"
repository = "https://charts.bitnami.com/bitnami"
namespace = "external-dns"
version = "6.4.4"
wait = true
force_update = true
recreate_pods = true
create_namespace = false
max_history = 3
values = [
"${file("app-values/external-dns/values.yaml")}"
]
set {
name = "cloudflare.secretName"
value = kubernetes_secret.cloudflare_api_token.metadata[0].name
}
set {
name = "zoneIdFilters"
value = "{${var.cloudflare_zone_id_filter}}"
}
}
resource "helm_release" "traefik" {
depends_on = [helm_release.external-dns]
name = "traefik"
chart = "traefik"
repository = "https://helm.traefik.io/traefik"
namespace = "traefik"
version = "10.20.0"
wait = true
force_update = true
recreate_pods = true
create_namespace = false
max_history = 3
values = [
"${file("app-values/traefik/values.yaml")}"
]
}
resource "helm_release" "metrics-server" {
depends_on = [helm_release.traefik]
name = "metrics-server"
chart = "metrics-server"
repository = "https://charts.bitnami.com/bitnami"
namespace = "metrics-server"
version = "6.0.4"
wait = true
force_update = true
recreate_pods = true
create_namespace = false
max_history = 3
values = [
"${file("app-values/metrics-server/values.yaml")}"
]
}