-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus.tf
67 lines (56 loc) · 1.69 KB
/
prometheus.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
# See https://prometheus.io/docs/prometheus/latest/installation/
################################################################################
# Create Namespace
################################################################################
resource "kubernetes_namespace" "prometheus" {
metadata {
name = "prometheus"
}
}
################################################################################
# Deploy metrics-server
#
# See https://artifacthub.io/packages/helm/metrics-server/metrics-server
################################################################################
resource "helm_release" "prometheus" {
name = "prometheus"
repository = "https://prometheus-community.github.io/helm-charts"
chart = "prometheus"
version = "25.8.2"
namespace = kubernetes_namespace.prometheus.metadata[0].name
values = [
"${file("values/prometheus.yaml")}"
]
set {
name = "server.ingress.annotations.alb\\.ingress\\.kubernetes\\.io/certificate-arn"
value = module.shared_private.vendorcorp_cert_arn
}
set {
name = "server.ingress.external-dns\\.alpha\\.kubernetes\\.io/hostname"
value = "monitoring.${module.shared_private.dns_zone_vendorcorp_name}"
}
set_list {
name = "server.ingress.hosts"
value = ["monitoring.${module.shared_private.dns_zone_vendorcorp_name}"]
}
set {
name = "nodeSelector.instancegroup"
value = "vendorcorp-core"
}
set {
name = "tolerations[0].key"
value = "dedicated"
}
set {
name = "tolerations[0].value"
value = "vendorcorp-core"
}
set {
name = "tolerations[0].operator"
value = "Equal"
}
set {
name = "tolerations[0].effect"
value = "NoSchedule"
}
}