-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
167 lines (130 loc) · 3.04 KB
/
variables.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
variable "region" {
description = "GKE cluster region"
}
variable "project" {
description = "Name of the project"
}
variable "zones" {
description = "GKE Cluster zones"
type = list(string)
}
variable "cluster_name" {
description = "Name of the GKE cluster"
}
# See: https://cloud.google.com/kubernetes-engine/docs/how-to/ip-aliases
variable "node_cidr_range" {
description = "VPC nodes CIDR range"
}
variable "pod_cidr_range" {
description = "VPC pods CIDR range"
}
variable "service_cidr_range" {
description = "VPC services CIDR range"
}
variable "master_cidr_range" {
description = "CIDR range for masters"
}
variable "gke_node_scopes" {
description = "The GKE node scopes"
type = list(string)
default = [
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/devstorage.read_write",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring",
]
}
variable "auth_cidr_blocks" {
type = list
description = "Authorized cidr blocks for the API"
}
variable "kubernetes_version" {
description = "Minimum k8s master version"
}
variable "machine_type" {
description = "Instance type for the primary pool of workers"
}
variable "machine_disk_size" {
description = "Disk size for the primary pool of workers"
}
variable "machine_disk_type" {
description = "Disk type for the primary pool of workers"
default = "pd-standard"
}
variable "machine_is_preemptible" {
description = "If true use preemptible instances"
}
variable "min_nodes" {
description = "Min number of workers"
default = 0
}
variable "max_nodes" {
description = "Max number of workers"
}
variable "max_surge" {
default = 1
}
variable "max_unavailable" {
default = 0
}
variable "daily_maintenance" {
default = "02:00"
}
variable "disable_hpa" {
default = false
}
variable "disable_lb" {
default = false
}
variable "disable_dashboard" {
default = false
}
variable "disable_network_policy" {
default = false
}
variable "enable_calico" {
default = true
}
variable "network_allow_workers_ports_from_master" {
type = list
default = ["443", "6443", "8443"]
}
variable "init_nodes" {
}
variable "authenticator_groups_security_group" {
type = string
default = null
}
variable "logging_service" {
default = "logging.googleapis.com/kubernetes"
}
variable "monitoring_service" {
default = "monitoring.googleapis.com/kubernetes"
}
variable "disable_istio" {
default = true
}
variable "istio_config_auth" {
default = "AUTH_MUTUAL_TLS"
}
# https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning
variable "cluster_autoscaling" {
default = false
}
# OPTIMIZE_UTILIZATION or BALANCED
variable "cluster_autoscaling_profile" {
type = string
default = "OPTIMIZE_UTILIZATION"
}
variable "cluster_autoscaling_min_cpu" {
type = number
}
variable "cluster_autoscaling_max_cpu" {
type = number
}
variable "cluster_autoscaling_min_memory" {
type = number
}
variable "cluster_autoscaling_max_memory" {
type = number
}