forked from DNXLabs/terraform-aws-eks-velero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helm.tf
89 lines (72 loc) · 1.73 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
resource "helm_release" "velero" {
depends_on = [var.mod_dependency, kubernetes_namespace.velero]
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 = "credentials.useSecret"
value = false
}
set {
name = "serviceAccount.server.name"
value = var.service_account_name
}
set {
name = "securityContext.fsGroup"
value = 65534
}
set {
name = "serviceAccount.server.annotations.eks\\.amazonaws\\.com/role-arn"
value = aws_iam_role.kubernetes_velero[0].arn
}
set {
name = "configuration.provider"
value = "aws"
}
set {
name = "configuration.backupStorageLocation.bucket"
value = var.create_bucket ? aws_s3_bucket.velero[0].id : var.bucket_name
}
set {
name = "configuration.backupStorageLocation.config.region"
value = var.aws_region
}
set {
name = "configuration.volumeSnapshotLocation.name"
value = var.volume_snapshot_name
}
set {
name = "configuration.volumeSnapshotLocation.config.region"
value = var.aws_region
}
set {
name = "initContainers[0].name"
value = "velero-plugin-for-aws"
}
set {
name = "initContainers[0].image"
value = "velero/velero-plugin-for-aws:v1.1.0"
}
set {
name = "initContainers[0].volumeMounts[0].mountPath"
value = "/target"
}
set {
name = "initContainers[0].volumeMounts[0].name"
value = "plugins"
}
set {
name = "metrics.enabled"
value = "true"
}
set {
name = "metrics.serviceMonitor.enabled"
value = "true"
}
values = [
yamlencode(var.settings)
]
}