-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.tf
65 lines (55 loc) · 2.29 KB
/
main.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
resource "random_id" "run_id" {
byte_length = 4
}
module "gke" {
providers = {
google.compute = google
google.vpc = google.vpc
google-beta.compute-beta = google-beta.compute-beta
}
source = "./modules/gcp-gke"
stage = var.stage
cluster_name = "gke-${random_id.run_id.hex}"
kubernetes_version = var.kubernetes_version
release_channel = var.release_channel
create_gcp_nat = var.create_gcp_nat
create_gcp_router = var.create_gcp_router
create_public_https_firewall_rule = var.create_public_https_firewall_rule
enable_network_policy = var.enable_network_policy
nat_ip_address_self_links = var.nat_ip_address_self_links
gke_authenticator_groups_config_domain = var.gke_authenticator_groups_config_domain
google_project = var.google_project
google_region = var.google_region
machine_type = var.machine_type
master_authorized_networks = var.master_authorized_networks
master_ipv4_cidr_block = var.master_ipv4_cidr_block
initial_node_count = var.initial_node_count
minimum_node_count = var.minimum_node_count
maximum_node_count = var.maximum_node_count
shared_vpc_id = var.shared_vpc_id
shared_vpc_host_google_project = var.shared_vpc_host_google_project
shared_vpc_self_link = var.shared_vpc_self_link
subnetwork_self_link = var.subnetwork_self_link
pods_ip_range_name = var.pods_ip_range_name
services_ip_range_name = var.services_ip_range_name
enable_cost_allocation_feature = var.enable_cost_allocation_feature
enable_l4_ilb_subsetting = var.enable_l4_ilb_subsetting
deletion_protection = false
skip_create_built_in_node_pool = true
additional_node_pools = [
{
name = "primary"
machine_type = var.machine_type
minimum_node_count = var.minimum_node_count
maximum_node_count = var.maximum_node_count
enable_secure_boot = true
taints = [{
key = "terratest"
value = "true"
effect = "NO_SCHEDULE"
}]
tags = ["terratest"]
zones = ["asia-southeast2-a", "asia-southeast2-b", "asia-southeast2-c"]
},
]
}