-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.tf
70 lines (58 loc) · 1.61 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
66
67
68
69
70
data "google_compute_zones" "available" {
region = "${local.merged_settings["region_name"]}"
status = "UP"
}
locals {
additional_zone_names = "${slice(data.google_compute_zones.available.names, 1, local.merged_settings["zone_amount"])}"
}
resource "google_container_cluster" "cluster" {
lifecycle {
ignore_changes = ["node_pool"]
}
name = "${local.merged_settings["cluster_name"]}"
zone = "${data.google_compute_zones.available.names[0]}"
additional_zones = ["${local.additional_zone_names}"]
addons_config {
# horizontal_pod_autoscaling (default: enabled)
http_load_balancing {
disabled = "${local.merged_settings["http_load_balancing"] == true ? false : true}"
}
# kubernetes_dashboard (default: enabled)
}
# cluster_ipv4_cidr
# description
# enable_kubernetes_alpha
enable_legacy_abac = "${local.merged_settings["enable_legacy_abac"]}"
# initial_node_count (deprecated)
# ip_allocation_policy {
# cluster_secondary_range_name
# services_secondary_range_name
#}
# logging_service
maintenance_policy {
daily_maintenance_window {
start_time = "${local.merged_settings["daily_maintenance_window"]}"
}
}
# master_auth {
# password
# username
#}
# master_authorized_networks_config {
# cidr_blocks
# cidr_block
# display_name
#}
min_master_version = "${local.merged_settings["gke_min_master_version"]}"
# monitoring_service
# network
# network_policy {
# provider
# enabled
#}
# node_config (node_pool overrides)
node_pool = {}
# node_version (node_pool overrides)
# project
# subnetwork
}