-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
190 lines (155 loc) · 3.98 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
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. sequence of application name and environment `name`,`environment`,'attribute' [`webserver`,`qa`,`devops`,`public`,] ."
}
variable "name" {
type = string
default = ""
description = "Name of the resource. Provided by the client when the resource is created. "
}
variable "module_enabled" {
type = bool
default = true
description = "Flag to control the service_account_enabled creation."
}
variable "google_container_cluster_enabled" {
type = bool
default = true
description = "Flag to control the cluster_enabled creation."
}
variable "location" {
type = string
default = ""
description = "The location (region or zone) in which the cluster master will be created, as well as the default node location."
}
variable "remove_default_node_pool" {
type = bool
default = true
description = "deletes the default node pool upon cluster creation."
}
variable "initial_node_count" {
type = number
default = 1
description = "The number of nodes to create in this cluster's default node pool."
}
variable "google_container_node_pool_enabled" {
type = bool
default = true
description = "Flag to control the cluster_enabled creation."
}
variable "node_count" {
type = number
default = 1
description = "The number of nodes to create in this cluster's default node pool."
}
variable "service_account" {
type = string
default = ""
description = "The Google Cloud Platform Service Account to be used by the node VMs created by GKE Autopilot or NAP."
}
variable "project" {
type = string
default = ""
description = "The project ID to host the cluster in"
}
variable "cluster" {
type = string
default = ""
description = "The cluster to create the node pool for."
}
######################### Autoscaling ###########################
variable "min_node_count" {
type = number
default = 2
}
variable "max_node_count" {
type = number
default = 7
}
variable "location_policy" {
type = string
default = "BALANCED"
}
######################### management ###########################
variable "auto_repair" {
type = bool
default = true
}
variable "auto_upgrade" {
type = bool
default = true
}
######################### node_config ###########################
variable "image_type" {
type = string
default = ""
}
variable "machine_type" {
type = string
default = ""
}
variable "disk_size_gb" {
type = number
default = 50
}
variable "disk_type" {
type = string
default = ""
}
variable "preemptible" {
type = bool
default = false
}
######################### timeouts ###########################
variable "cluster_create_timeouts" {
type = string
default = "30m"
}
variable "cluster_update_timeouts" {
type = string
default = "30m"
}
variable "cluster_delete_timeouts" {
type = string
default = "30m"
}
variable "kubectl_config_path" {
description = "Path to the kubectl config file. Defaults to $HOME/.kube/config"
type = string
default = ""
}
variable "cluster_name" {
type = string
default = ""
}
variable "project_id" {
type = string
default = ""
description = "Google Cloud project ID"
}
variable "region" {
type = string
default = ""
description = "Google Cloud region"
}
variable "network" {
type = string
default = ""
description = "A reference (self link) to the VPC network to host the cluster in"
}
variable "subnetwork" {
type = string
default = ""
description = "A reference (self link) to the subnetwork to host the cluster in"
}
variable "gke_version" {
type = string
default = ""
description = "The minimum version of the master. "
}