-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathissuer-letsencrypt-staging.tf
39 lines (38 loc) · 1.08 KB
/
issuer-letsencrypt-staging.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 "kubernetes_manifest" "clusterissuer_letsencrypt_staging" {
count = var.deploy_cluster_issuers ? 1 : 0
manifest = {
"apiVersion" = "cert-manager.io/v1"
"kind" = "ClusterIssuer"
"metadata" = {
"name" = "letsencrypt-staging"
"labels" = local.common_labels
}
"spec" = {
"acme" = {
"email" = var.letsencrypt_email
"preferredChain" = ""
"privateKeySecretRef" = {
"name" = "letsencrypt-staging"
}
"server" = "https://acme-staging-v02.api.letsencrypt.org/directory"
"solvers" = [
{
"dns01" = {
"cnameStrategy" = "Follow"
"azureDNS" = {
"hostedZoneName" = var.azure_zone_name
"resourceGroupName" = var.azure_resource_group_name
"subscriptionID" = var.azure_subscription_id
}
}
"selector" = {
"matchLabels" = {
"use-azuredns-solver" = "true"
}
}
},
]
}
}
}
}