-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
229 lines (187 loc) · 4.63 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
variable "gcloud_region" {
description = "Google Cloud region"
}
variable "gcloud_project" {
description = "Name of the GKE project"
}
variable "gke_name" {
default = "prow"
}
variable "system" {
description = "The system name"
default = "testinfra"
}
# See: https://cloud.google.com/kubernetes-engine/docs/how-to/ip-aliases
variable "gke_node_cidr_range" {
description = "VPC nodes CIDR range"
default = "10.101.0.0/22"
}
variable "gke_pod_cidr_range" {
description = "VPC pods CIDR range"
default = "172.20.0.0/14"
}
variable "gke_service_cidr_range" {
description = "VPC services CIDR range"
default = "10.200.0.0/16"
}
variable "gke_master_cidr_range" {
description = "CIDR range for masters"
default = "172.16.0.32/28"
}
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",
"https://www.googleapis.com/auth/ndev.clouddns.readwrite"
]
}
variable "gke_auth_cidr_blocks" {
type = list
description = "Authorized cidr blocks for the API"
default = [
{
cidr_block = "0.0.0.0/0",
display_name = "everyone"
}
]
}
variable "gke_kubernetes_version" {
description = "Minimum k8s master version"
}
variable "gke_machine_type" {
description = "Instance type for the primary pool of workers"
default = "n2-standard-4"
}
variable "gke_machine_disk_size" {
description = "Disk size for the primary pool of workers"
default = 50
}
variable "gke_machine_is_preemptible" {
description = "If true use preemptible instances"
default = true
}
variable "gke_min_nodes" {
description = "Min number of workers"
default = 0
}
variable "gke_max_nodes" {
description = "Max number of workers"
default = 4
}
variable "gke_num_of_zones" {
description = "Number of zones for the cluster."
default = 3
}
variable "max_surge" {
default = 1
}
variable "max_unavailable" {
default = 0
}
variable "imagebuilder_machine_type" {
description = "Instance type for the image builder pool of workers"
default = "n2-standard-4"
}
variable "imagebuilder_machine_disk_type" {
description = "Disk size for the image builder pool of workers"
default = "pd-ssd"
}
variable "imagebuilder_machine_disk_size" {
description = "Disk size for the image builder pool of workers"
default = 100
}
variable "imagebuilder_machine_is_preemptible" {
description = "If true use preemptible instances"
default = true
}
variable "imagebuilder_min_nodes" {
description = "Min number of workers"
default = 0
}
variable "imagebuilder_max_nodes" {
description = "Max number of workers"
default = 4
}
variable "gke_daily_maintenance" {
default = "02:00"
}
variable "gke_disable_hpa" {
default = true
}
variable "gke_disable_lb" {
default = true
}
variable "gke_disable_dashboard" {
default = true
}
variable "gke_disable_network_policy" {
default = false
}
variable "gke_enable_calico" {
default = true
}
variable "gke_init_nodes" {
default = 1
}
variable "gke_authenticator_groups_security_group" {
}
variable "prow_artefact_bucket_location" {
type = string
}
variable "base_domain" {
type = string
}
variable "google_apis" {
type = set(string)
default = [
"iam.googleapis.com",
"cloudresourcemanager.googleapis.com",
"container.googleapis.com",
"compute.googleapis.com",
"iamcredentials.googleapis.com",
"storage-api.googleapis.com",
"storage-component.googleapis.com",
"cloudapis.googleapis.com",
"containerregistry.googleapis.com",
"logging.googleapis.com",
"monitoring.googleapis.com",
"servicemanagement.googleapis.com",
"serviceusage.googleapis.com",
"dns.googleapis.com"
]
}
variable "logging_service" {
default = "logging.googleapis.com/kubernetes"
}
variable "monitoring_service" {
default = "monitoring.googleapis.com/kubernetes"
}
# 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
default = 0
}
variable "cluster_autoscaling_max_cpu" {
type = number
default = 16
}
variable "cluster_autoscaling_min_memory" {
type = number
default = 0
}
variable "cluster_autoscaling_max_memory" {
type = number
default = 56
}