forked from claranet/terraform-azurerm-aks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
r-tools.tf
132 lines (102 loc) · 4.85 KB
/
r-tools.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
module "appgw" {
source = "./tools/agic"
providers = {
kubernetes = kubernetes.aks-module
helm = helm.aks-module
}
agic_enabled = var.agic_enabled
agic_chart_repository = var.agic_chart_repository
agic_chart_version = coalesce(var.agic_helm_version, var.agic_chart_version)
stack = var.stack
environment = var.environment
location = var.location
location_short = var.location_short
client_name = var.client_name
name = local.appgw_name
resource_group_name = var.resource_group_name
app_gateway_subnet_id = var.appgw_subnet_id
diagnostic_settings_logs_destination_ids = var.diagnostic_settings_logs_destination_ids
diagnostic_settings_log_categories = var.diagnostic_settings_log_categories
diagnostic_settings_metric_categories = var.diagnostic_settings_metric_categories
diagnostic_settings_custom_name = var.diagnostic_settings_custom_name
diagnostic_settings_retention_days = var.diagnostic_settings_retention_days
ip_name = local.appgw_settings.ip_name
ip_sku = local.appgw_settings.ip_sku
ip_allocation_method = local.appgw_settings.ip_allocation_method
frontend_ip_configuration_name = local.appgw_settings.frontend_ip_configuration_name
frontend_priv_ip_configuration_name = local.appgw_settings.frontend_priv_ip_configuration_name
gateway_ip_configuration_name = local.appgw_settings.gateway_ip_configuration_name
gateway_identity_id = local.appgw_settings.identity
sku_name = local.appgw_settings.sku_name
sku_tier = local.appgw_settings.sku_tier
sku_capacity = local.appgw_settings.sku_capacity
zones = local.appgw_settings.zones
policy_name = local.appgw_settings.policy_name
enabled_waf = local.appgw_settings.enabled_waf
file_upload_limit_mb = local.appgw_settings.file_upload_limit_mb
max_request_body_size_kb = local.appgw_settings.max_request_body_size_kb
request_body_check = local.appgw_settings.request_body_check
rule_set_type = local.appgw_settings.rule_set_type
rule_set_version = local.appgw_settings.rule_set_version
firewall_mode = local.appgw_settings.firewall_mode
appgw_backend_http_settings = local.appgw_settings.appgw_backend_http_settings
appgw_backend_pools = local.appgw_settings.appgw_backend_pools
appgw_probes = local.appgw_settings.appgw_probes
appgw_routings = local.appgw_settings.appgw_routings
appgw_http_listeners = local.appgw_settings.appgw_http_listeners
frontend_port_settings = local.appgw_settings.frontend_port_settings
ssl_certificates_configs = var.appgw_ssl_certificates_configs
app_gateway_tags = local.appgw_settings.app_gateway_tags
ip_tags = local.appgw_settings.ip_tags
aks_aad_pod_identity_id = module.infra.aad_pod_identity_id
aks_aad_pod_identity_client_id = module.infra.aad_pod_identity_client_id
aks_aad_pod_identity_principal_id = module.infra.aad_pod_identity_principal_id
appgw_ingress_values = var.appgw_ingress_controller_values
private_ingress = var.private_ingress
appgw_private_ip = var.appgw_private_ip
}
module "certmanager" {
source = "./tools/cert-manager"
providers = {
kubernetes = kubernetes.aks-module
helm = helm.aks-module
}
enable_cert_manager = var.enable_cert_manager
cert_manager_namespace = var.cert_manager_namespace
cert_manager_chart_repository = var.cert_manager_chart_repository
cert_manager_chart_version = var.cert_manager_chart_version
cert_manager_settings = var.cert_manager_settings
}
module "kured" {
source = "./tools/kured"
providers = {
helm = helm.aks-module
}
enable_kured = var.enable_kured
kured_settings = var.kured_settings
kured_chart_repository = var.kured_chart_repository
kured_chart_version = var.kured_chart_version
}
module "velero" {
depends_on = [azurerm_kubernetes_cluster.aks]
source = "./tools/velero"
providers = {
kubernetes = kubernetes.aks-module
helm = helm.aks-module
}
enable_velero = var.enable_velero
client_name = var.client_name
stack = var.stack
environment = var.environment
location = var.location
location_short = var.location_short
name_prefix = var.name_prefix
resource_group_name = var.resource_group_name
aks_nodes_resource_group_name = azurerm_kubernetes_cluster.aks.node_resource_group
nodes_subnet_id = var.nodes_subnet_id
velero_namespace = var.velero_namespace
velero_chart_repository = var.velero_chart_repository
velero_chart_version = var.velero_chart_version
velero_values = var.velero_values
velero_storage_settings = var.velero_storage_settings
}