-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
65 lines (51 loc) · 1.01 KB
/
main.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
resource "kubernetes_namespace" "i" {
metadata {
name = var.chart_name
labels = {
app = var.chart_name
}
}
}
resource "helm_release" "i" {
depends_on = [kubernetes_namespace.i]
name = var.chart_name
namespace = kubernetes_namespace.i.metadata[0].name
repository = var.chart_repo
chart = var.chart_name
version = var.chart_version
cleanup_on_fail = true
dependency_update = true
recreate_pods = true
set {
name = "persistence.enabled"
value = "true"
}
set {
name = "image.tag"
value = "1.30.5"
}
set {
name = "persistence.size"
value = "10Gi"
}
set {
name = "ingress.enabled"
value = "false"
}
set {
name = "vaultwarden.domain"
value = "https://${var.domain_name}"
}
set {
name = "vaultwarden.allowSignups"
value = "false"
}
set {
name = "vaultwarden.admin.enabled"
value = "true"
}
set_sensitive {
name = "vaultwarden.admin.token"
value = var.admin_token
}
}