-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.tf
58 lines (49 loc) · 1.44 KB
/
install.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
// Enable HA Mode
resource "helm_release" "linkerd_ha" {
count = var.enable_linkerd_ha == true ? 1 : 0
name = "linkerd"
repository = "https://helm.linkerd.io/stable"
chart = "linkerd2"
values = [
file("${path.module}/values-ha.yaml")
]
set_sensitive {
name = "global.identityTrustAnchorsPEM"
value = tls_self_signed_cert.trustanchor_cert.cert_pem
}
set_sensitive {
name = "identity.issuer.crtExpiry"
value = tls_locally_signed_cert.issuer_cert.validity_end_time
}
set_sensitive {
name = "identity.issuer.tls.crtPEM"
value = tls_locally_signed_cert.issuer_cert.cert_pem
}
set_sensitive {
name = "identity.issuer.tls.keyPEM"
value = tls_private_key.issuer_key.private_key_pem
}
}
// Disable HA Mode
resource "helm_release" "linkerd_dev" {
count = var.enable_linkerd_ha == false ? 1 : 0
name = "linkerd"
repository = "https://helm.linkerd.io/stable"
chart = "linkerd2"
set_sensitive {
name = "identityTrustAnchorsPEM"
value = tls_self_signed_cert.trustanchor_cert.cert_pem
}
set_sensitive {
name = "identity.issuer.crtExpiry"
value = tls_locally_signed_cert.issuer_cert.validity_end_time
}
set_sensitive {
name = "identity.issuer.tls.crtPEM"
value = tls_locally_signed_cert.issuer_cert.cert_pem
}
set_sensitive {
name = "identity.issuer.tls.keyPEM"
value = tls_private_key.issuer_key.private_key_pem
}
}