-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
80 lines (62 loc) · 2.26 KB
/
main.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
68
69
70
71
72
73
74
75
76
77
78
79
80
provider "helm" {
kubernetes {
config_path = "~/.kube/config"
config_context = "microk8s"
}
}
resource "helm_release" "fluent" {
name = "fluent"
repository = "https://fluent.github.io/helm-charts"
chart = "fluent-bit"
version = "0.47.4"
reset_values = true
# recreate_pods = true # DEPRECATED in Helm 3 https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback
values = [
file("${path.module}/otel/fluent-bit/helm-values.yaml")
]
}
resource "helm_release" "opentelemetry_collector" {
name = "collector"
# chart = "https://github.com/open-telemetry/opentelemetry-helm-charts/releases/download/opentelemetry-collector-0.90.1/opentelemetry-collector-0.90.1.tgz"
repository = "https://open-telemetry.github.io/opentelemetry-helm-charts"
chart = "opentelemetry-collector"
version = "0.99.0"
reset_values = true
# recreate_pods = true # DEPRECATED in Helm 3 https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback
values = [
file("${path.module}/otel/collector/helm-values.yaml")
]
}
resource "helm_release" "loki" {
name = "loki"
repository = "https://grafana.github.io/helm-charts"
chart = "loki"
version = "6.7.3"
reset_values = true
# recreate_pods = true # DEPRECATED in Helm 3 https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback
values = [
file("${path.module}/otel/loki/helm-values.yaml")
]
}
resource "helm_release" "grafana" {
name = "grafana"
repository = "https://grafana.github.io/helm-charts"
chart = "grafana"
version = "8.3.6"
reset_values = true
# recreate_pods = true # DEPRECATED in Helm 3 https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback
values = [
file("${path.module}/otel/grafana/helm-values.yaml")
]
}
resource "helm_release" "prometheus" {
name = "prometheus"
repository = "https://prometheus-community.github.io/helm-charts"
chart = "prometheus"
version = "25.21.0"
reset_values = true
# recreate_pods = true # DEPRECATED in Helm 3 https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback
values = [
file("${path.module}/otel/prometheus/helm-values.yaml")
]
}