-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgke.tf
87 lines (75 loc) · 2.15 KB
/
gke.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
module "gke" {
source = "terraform-google-modules/kubernetes-engine/google"
version = "14.3.0"
project_id = local.project_id
name = "${local.cluster}-cluster"
region = "europe-west1"
zones = ["europe-west1-b", "europe-west1-c", "europe-west1-d"]
network = module.vpc.network_name
subnetwork = module.vpc.subnets_names[0]
ip_range_pods = "europe-west1-01-gke-01-pods"
ip_range_services = "europe-west1-01-gke-01-services"
http_load_balancing = false
horizontal_pod_autoscaling = true
network_policy = false
node_pools = [
{
name = "default-node-pool"
machine_type = "n1-highmem-2"
node_locations = "europe-west1-b,europe-west1-c"
min_count = 1
max_count = 100
local_ssd_count = 0
disk_size_gb = 10
disk_type = "pd-standard"
image_type = "COS"
auto_repair = true
auto_upgrade = false
preemptible = true
autoscaling = true
initial_node_count = 1
},
]
node_pools_oauth_scopes = {
all = [
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring",
]
default-node-pool = [
"https://www.googleapis.com/auth/cloud-platform",
]
}
node_pools_labels = {
all = {}
default-node-pool = {
default-node-pool = true
}
}
node_pools_metadata = {
all = {}
default-node-pool = {
node-pool-metadata-custom-value = "my-node-pool"
}
}
node_pools_taints = {
all = []
default-node-pool = [
{
key = "default-node-pool"
value = true
effect = "PREFER_NO_SCHEDULE"
},
]
}
node_pools_tags = {
all = []
default-node-pool = [
"default-node-pool",
]
}
}
output "env-dynamic-url" {
value = "https://${module.gke.endpoint}"
# sensitive must be true when referencing a sensitive input variable
sensitive = true
}