-
Notifications
You must be signed in to change notification settings - Fork 0
/
external-dns.tf
51 lines (42 loc) · 1.73 KB
/
external-dns.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
module "system_external_dns" {
source = "git::https://github.com/konpyutaika/terraform-external-dns-k8s.git/?ref=1.0.0"
# Kubernetes
kubernetes_cluster_name = var.kubernetes_cluster_name
watch_istio = true
# External-dns
external_dns_namespace = kubernetes_namespace.front_office.metadata.0.name
external_dns_sa_annotations = var.external_dns_sa_annotations
external_dns_additional_args = var.external_dns_additional_args
# Cloud DNS
dns_name = var.dns_name
external_dns_image = "bitnami/external-dns:0.12.0"
kubernetes_node_selector = {}
}
module "istio_system_external_dns" {
source = "git::https://github.com/konpyutaika/terraform-external-dns-k8s.git/?ref=1.0.0"
# Kubernetes
kubernetes_cluster_name = var.kubernetes_cluster_name
watch_istio = true
# External-dns
external_dns_namespace = kubernetes_namespace.istio-system.metadata.0.name
external_dns_sa_annotations = var.external_dns_sa_annotations
external_dns_additional_args = var.external_dns_additional_args
# Cloud DNS
dns_name = var.dns_name
external_dns_image = "bitnami/external-dns:0.12.0"
kubernetes_node_selector = {}
}
module "instances_external_dns" {
source = "git::https://github.com/konpyutaika/terraform-external-dns-k8s.git/?ref=1.0.0"
# Kubernetes
kubernetes_cluster_name = var.kubernetes_cluster_name
watch_istio = true
# External-dns
external_dns_namespace = kubernetes_namespace.instances.metadata.0.name
external_dns_sa_annotations = var.external_dns_sa_annotations
external_dns_additional_args = var.external_dns_additional_args
# Cloud DNS
dns_name = var.dns_name
external_dns_image = "bitnami/external-dns:0.12.0"
kubernetes_node_selector = {}
}