-
Notifications
You must be signed in to change notification settings - Fork 1
/
helm.tf
68 lines (60 loc) · 1.48 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
67
68
provider "helm" {
kubernetes {
config_path = module.eks.kubeconfig_filename
}
}
# Automatically create Route53 DNS records
resource "helm_release" "external-dns" {
name = "external-dns"
namespace = "infrastructure"
chart = "external-dns"
repository = "https://charts.bitnami.com/bitnami"
create_namespace = true
set {
name = "provider"
value = "aws"
}
set {
name = "aws.preferCNAME"
value = true
}
set {
name = "txtPrefix"
value = "txt"
}
set {
name = "policy"
value = "sync"
}
}
# Create ALBs/NLBs/ELBs easily
resource "helm_release" "aws-load-balancer-controller" {
name = "aws-load-balancer-controller"
namespace = "infrastructure"
chart = "aws-load-balancer-controller"
repository = "https://aws.github.io/eks-charts"
create_namespace = true
set {
name = "autoDiscoverAwsRegion"
value = true
}
set {
name = "autoDiscoverAwsVpcID"
value = true
}
set {
name = "clusterName"
value = module.eks.cluster_id
}
}
# # Monitoring Stack
# resource "helm_release" "kube-prometheus-stack" {
# name = "kube-prometheus-stack"
# namespace = "infrastructure"
# chart = "kube-prometheus-stack"
# repository = "https://prometheus-community.github.io/helm-charts"
# create_namespace = true
# values = [
# file("${path.module}/values/kube-prometheus-stack-values.yaml"),
# ]
# }