forked from DNXLabs/terraform-aws-eks-cluster-autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helm.tf
39 lines (32 loc) · 853 Bytes
/
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
resource "helm_release" "cluster_autoscaler" {
depends_on = [var.mod_dependency, kubernetes_namespace.cluster_autoscaler]
count = var.enabled ? 1 : 0
name = var.helm_chart_name
chart = var.helm_chart_release_name
repository = var.helm_chart_repo
version = var.helm_chart_version
namespace = var.namespace
set {
name = "fullnameOverride"
value = var.fullname_override
}
set {
name = "autoDiscovery.clusterName"
value = var.cluster_name
}
set {
name = "awsRegion"
value = var.aws_region
}
set {
name = "rbac.serviceAccount.name"
value = var.service_account_name
}
set {
name = "rbac.serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"
value = aws_iam_role.kubernetes_cluster_autoscaler[0].arn
}
values = [
yamlencode(var.settings)
]
}