-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.tf
53 lines (41 loc) · 1 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
resource "aws_efs_access_point" "prometheus_server_efs" {
file_system_id = aws_efs_file_system.efs.id
root_directory {
path = "/prometheus_server"
}
}
resource "aws_efs_access_point" "prometheus_alertmanager_efs" {
file_system_id = aws_efs_file_system.efs.id
root_directory {
path = "/prometheus_alertmanager"
}
}
resource "helm_release" "prometheus" {
name = "prometheus"
namespace = "default"
repository = "https://prometheus-community.github.io/helm-charts"
chart = "prometheus"
values = [
<<EOF
server:
persistentVolume:
storageClass: "efs-ap-sc"
EOF
]
depends_on = [aws_eks_cluster.eks_cluster]
}
resource "helm_release" "grafana" {
name = "grafana"
namespace = "default"
repository = "https://grafana.github.io/helm-charts"
chart = "grafana"
set {
name = "service.type"
value = "LoadBalancer"
}
# set {
# name = "service.loadBalancerIP"
# value = "192.169.7.197"
# }
depends_on = [aws_eks_cluster.eks_cluster]
}