-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
main.tf
48 lines (45 loc) · 1.1 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
locals {
name = "cert-manager"
namespace = "cert-manager"
}
resource "helm_release" "cert_manager" {
name = local.name
repository = "https://charts.jetstack.io"
chart = "cert-manager"
version = "1.4.3"
force_update = true
cleanup_on_fail = true
namespace = local.namespace
create_namespace = true
set {
name = "installCRDs"
value = true
}
}
# Uncomment after the first run of deploy (read README.md)
# resource "kubernetes_manifest" "cluster_issuer" {
# manifest = {
# apiVersion = "cert-manager.io/v1"
# kind = "ClusterIssuer"
# metadata = {
# name = "letsencrypt"
# }
# spec = {
# acme = {
# server = "https://acme-v02.api.letsencrypt.org/directory"
# email = var.email
# privateKeySecretRef = {
# name = "letsencrypt-private-key"
# }
# solvers = [{
# http01 = {
# ingress = {
# class = "nginx"
# }
# }
# }]
# }
# }
# }
# depends_on = [helm_release.cert_manager]
# }