-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster.tf
63 lines (43 loc) · 2.12 KB
/
cluster.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
module "cluster" {
depends_on = [
module.kubeconfig,
]
source = "./modules/cluster"
cluster_endpoint = local.cluster_endpoint
external_kubernetes_service_host = format("%s.%s", var.dns_cluster_subdomain, var.dns_root)
external_kubernetes_service_port = var.control_plane_api_server_port
node_ipv4_addresses = local.node_ipv4_addresses
node_ipv6_addresses = local.node_ipv6_addresses
node_ipv6_cidrs = [for cidr in local.node_ipv6_cidrs : cidrsubnet(cidr, 32, 0)]
node_ipv4_lb_cidrs = local.node_ipv4_lb_cidrs
node_ipv6_lb_cidrs = local.node_ipv6_lb_cidrs
enable_cloudflare_dns = var.enable_cloudflare_dns
cloudflare_api_key = var.cloudflare_api_key
cloudflare_email = var.cloudflare_email
cilium_values = var.cilium_values
enable_kubelet_tls_bootstrapping_controller = var.enable_kubelet_tls_bootstrapping_controller
enable_local_path_provisioner = var.enable_local_path_provisioner
enable_metallb = var.enable_metallb
enable_metrics_server = var.enable_metrics_server
enable_tetragon = var.enable_tetragon
enable_traefik = var.enable_traefik
enable_gateway_api = var.enable_gateway_api
enable_cert_manager = var.enable_cert_manager
enable_cert_manager_csi_driver = var.enable_cert_manager_csi_driver
enable_lets_encrypt_dns01 = var.enable_lets_encrypt_dns01
enable_lets_encrypt_http01 = var.enable_lets_encrypt_http01
lets_encrypt_email = var.lets_encrypt_email
enable_google_trust_services_dns01 = true
enable_google_trust_services_http01 = true
google_cloud_platform_eab_hmac_key = var.google_cloud_platform_eab_hmac_key
google_cloud_platform_eab_kid = var.google_cloud_platform_eab_kid
enable_hetzner_cloud_controller_manager = var.enable_hetzner_cloud_controller_manager
enable_hetzner_cloud_controller_manager_routes = var.enable_hetzner_cloud_controller_manager_routes
hetzner_cloud_controller_manager_api_token = var.hcloud_api_token
hetzner_cloud_controller_manager_hcloud_network_id = module.network.network_id
providers = {
helm = helm
kubernetes = kubernetes
kubectl = kubectl
}
}