-
Notifications
You must be signed in to change notification settings - Fork 0
/
cert_manager.tf
39 lines (31 loc) · 1.16 KB
/
cert_manager.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
module "external_dns" {
source = "./modules/external_dns"
cluster_id = google_container_node_pool.primary.name
external_dns_id = "gke"
external_dns_project = var.google_project
external_dns_chart_version = "6.1.7"
kubernetes_namespace = kubernetes_namespace.external_dns.metadata.0.name
cloudflare_email = var.cloudflare_email
cloudflare_api_key = var.cloudflare_api_token
domain = var.root_domain
depends_on = [
google_container_cluster.primary,
google_container_node_pool.primary,
module.cert_manager
]
}
module "cert_manager" {
source = "./modules/cert_manager"
cluster_id = google_container_node_pool.primary.name
cert_manager_enabled = var.cert_manager_enabled
cert_manager_id = "gke"
cert_manager_project = var.google_project
cert_manager_chart_version = "1.7.1"
domain = var.root_domain
kubernetes_namespace = kubernetes_namespace.cert_manager.metadata.0.name
cloudflare_api_token = var.cloudflare_api_token
depends_on = [
google_container_cluster.primary,
google_container_node_pool.primary
]
}